register_chrdev_region() return value when there is no device file

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

 



Hello,

I am calling register_chrdev_region(dev, MAX_DVB_MINORS, "mydevice") in
a module.

The return of register_chrdev_region(dev, MAX_DEV_MINORS, "mydevice") is 0
even when the device does not exist. (I mean there
is no /dev/mydevice special file).

0 means success.

I want that the init method of my module will print
an error message and will not load the module if
my device special file does not exist.

How can I do it ?


John Q.

--
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