Vishal Linux a écrit :
Hi all,
Hi
I am trying to associate a driver to the '/dev/mem' device (the major
no. and minor no. of device is 1,1.)
[vishal@vishalsoni ~]$ ll /dev/mem
crw-r----- 1 root kmem 1, 1 May 30 2005 /dev/mem
Don't use 1 as major number. It's probably used by another driver (null
driver on my computer).
Try to allocate dynamically a major number or get one that is not used.
I think that's the problem. So when you open the /dev/mem device, in
fact it doesn't use "your open" method but another.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/