e="TEXT-INDENT: 2em">
struct resource {
const char *name;
unsigned long start, end;
unsigned long flags;
struct resource *parent, *sibiling, *child;
};
当模块从内核移出时,端口应当被释放以便为其它设备使用,为此我们在 cleanup_module ( )中 使用release_region ( ) 函数。 函数的语法如下:
void release_region ( unsigne页码:[1] [2] [3] [4] [5] [6] [7] [8] 第7页、共8页 |