adjust_resource()
PATCH 1/1 adjust_resource()
Hi Linus.
I need something along these lines to cope with some devices on PA-RISC and Russell also needs something like it for PCMCIA. What do you think?
include/linux/ioport.h +2 -0
@@ -99,6 +99,8 @@ extern int allocate_resource(struct resovoid (*alignf)(void *,struct resource *,unsigned long ,unsigned long ), void *alignf_data); +int adjust_resource (struct resource *res,unsigned long start, +unsigned long size);/* Convenience shorthand with allocation */ #define request_region (start,n,name) __request_region(&ioport_resource, (start), (n), (name))
kernel/resource.c +43 -0
49 lines not on this page · raw message
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain