Dan Shimshoni wrote:
Hi,
Is there a way I can test, from a kernel module, the existence of a
device file ?
A kernel module I write is a character device module, which depends
on getting ioctls. In order that it will work, "mknod ... /dev/myDev"
should be issued before to create the device file.
Is there a way to check, in the init() method of this module, the
existence of /dev/myDev (and exit with a proper printk if /dev/myDev
does not exist)?
That is not the way it is done.
Provide a udev rule to create the /dev file automagically when the
character device register.
See: http://www.reactivated.net/writing_udev_rules.html
Gilad
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]