devfs_mk_cdev question

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

 



Hi group,
 
Can anybody tell me what happens in this piece of code:
 
mousedev_table[minor] = mousedev;
 
 devfs_mk_cdev(MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor),
   S_IFCHR|S_IRUGO|S_IWUSR, "input/mouse%d", minor);
 class_simple_device_add(input_class,
    MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor),
    dev->dev, "mouse%d", minor);
 
I am especially interested in devfs_mk_cdev and what is means.
 
Can anybody help me?
 
Thanks in advance,
 
PA

[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