Have a look into the examples from A.Rubini's 'Linux Device Drivers' book, downloadable from the website advertised on top of the KHG page. Could the 'allocator' code in ftp/v2.1/misc-modules/allocator.[ch] and ftp/v2.1/misc-modules/README.allocator be a solution to your problem? |