Hybrid devices for the character device:
To define a hybrid device:
struct misdevice{
int minor; Why is there only a secondary device number because the hybrid device is a /////////////////////////linux system with the default main device number of 10 special character device.
const char *name;
const struct File_operation *fops;
struct List_head list;
struct device *parent;
struct device *this _device;
}
to Register a hybrid device driver with a Linux system:
int misc_register (struct misdevice *misc)// and functions: Int Cdev_add (struct Cdev////////////////////////////////////////////////////////////////////////*,dev_t,unsigned); Same.
To uninstall a hybrid device:
int Misc_deregister (struct misdevice *misc)
Note: The initialization of promiscuous devices does not use functions cdev_init (stuct cdev *,const struct file_operation *) links the device description structure to the set of device operation functions.
<wiz_tmp_tag id= "Wiz-table-range-border" contenteditable= "false" style= "Display:none;" >
Linux-powered hybrid devices (Misc)