dir The handle to the parent devfs directory entry. If this is NULL the
new name is relative to the root of the devfs.
nameThe name of the entry.
flagsA set of bitwise-ORed flags (DEVFS_FL_*).
majorThe major number. Not needed for regular files.
minorThe minor number. Not needed for regular files.
modeThe default file mode.
opsThe &file_operations or &block_device_operations structure. This must not be externally deallocated.
info An arbitrary pointer which will be written to the private_data
field of the &file structure passed to the device driver. You can set
this to whatever you like, and change it once the file is opened (the next
file opened will not see this change).