Name
device_rename —
renames a device
Synopsis
int fsfuncdevice_rename ( | struct device * dev, |
| const char * new_name) ; |
Arguments
dev
the pointer to the struct device to be renamed
new_name
the new name of the device
Description
It is the responsibility of the caller to provide mutual
exclusion between two different calls of device_rename
on the same device to ensure that new_name is valid and
won't conflict with other devices.
“Never use this function, bad things will happen” - gregkh