howto use request_region() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...
	unsigned int pnp_addr = 0x279;
	if (!request_region(pnp_addr, 1, "my_drv")) {
		printk(KERN_INFO "pnp_addr port not available.\n");
	} else {
		printk(KERN_INFO "pnp_addr port available.\n");
		release_region(pnp_addr, 1);
	}

...

i can't assign an specific region, always return NULL pointer.

in user space, using iopl(), i access to pnp_addr port, and comunication
with pnp directly.


i need other things to use request_region() ?
seeing /proc/ioport 0x279 is not used

TIA

--ArYiX

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux