alloc_chrdev_region/unregister_chrdev_region - Issue

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

 



Hi,

I am using 'alloc_chrdev_region' for registering char device range and then 'unregister_chrdev_region' for un-registering it.
But on each insmod I am getting MAJOR number as one less then that of previous time.

On seeing the code (unregister_chrdev_region) it seems that it just kfree the chrdevs[] entry but not set it to NULL which cause for new
entry in chrdevs[].

Thanks,
Chetan Nanda

[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