hello ok,i wrote the EDP algorithm code as you can see in the attached file please, look at it, and if there is any mistake, would you like to indicate it to me if is ok, how can i write my pacth, i''m using red hat 7.2(kernel2.4.7-10) is it necessairely to write this pacth and also the pacth for tc . can i change the files indicated in the htb pacth or not thank you in advance ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --0-686715433-1023364699=:68553 Content-Type: application/x-unknown; name="sch_edp.c" Content-Transfer-Encoding: base64 Content-Description: sch_edp.c Content-Disposition: attachment; filename="sch_edp.c" LyoKICogbmV0L3NjaGVkL3NjaF9lcGQuYwlFYXJseSBwYWNrZXQgZGlzY2Fy dCBmb3IgbXVsdGltZWRpYSBzdHJlYW0uCiAqCiAqCQlUaGlzIHByb2dyYW0g aXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5k L29yCiAqCQltb2RpZnkgaXQKCiAqCiAqIEF1dGhvcnM6CUFsb3Vpbmkga2hh bGlmYSA8ay5hbG91aW5pQHZvaWxhLmZyPiAgPHBvd2VyZHIxQHlhaG9vLmZy PiYgTXJhYmV0IGN5cmluZQogKi8KCiNpbmNsdWRlIDxsaW51eC9jb25maWcu aD4KI2luY2x1ZGUgPGxpbnV4L21vZHVsZS5oPgojaW5jbHVkZSA8YXNtL3Vh Y2Nlc3MuaD4KI2luY2x1ZGUgPGFzbS9zeXN0ZW0uaD4KI2luY2x1ZGUgPGFz bS9iaXRvcHMuaD4KI2luY2x1ZGUgPGxpbnV4L3R5cGVzLmg+CiNpbmNsdWRl IDxsaW51eC9rZXJuZWwuaD4KI2luY2x1ZGUgPGxpbnV4L3NjaGVkLmg+CiNp bmNsdWRlIDxsaW51eC9zdHJpbmcuaD4KI2luY2x1ZGUgPGxpbnV4L21tLmg+ CiNpbmNsdWRlIDxsaW51eC9zb2NrZXQuaD4KI2luY2x1ZGUgPGxpbnV4L3Nv Y2tpb3MuaD4KI2luY2x1Z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