02. request_region() 要求區域

Registering port

 /* Registering port */
  port = check_region(0x378, 1);      //0x378 是 parlel port 的記憶體位置
  if (port) {
    printk("parlelport: cannot reserve 0x378\n");
    result = port;
    goto fail;
  }
  request_region(0x378, 1, "parlelport");
Linux Driver
CH01 簡介CH02 註冊CH03 記憶體CH04 硬體函數CH05 USB