1DEVICE_RENAME(9) Device drivers infrastructure DEVICE_RENAME(9)
2
3
4
6 device_rename - renames a device
7
9 int device_rename(struct device * dev, const char * new_name);
10
12 dev
13 the pointer to the struct device to be renamed
14
15 new_name
16 the new name of the device
17
19 It is the responsibility of the caller to provide mutual exclusion
20 between two different calls of device_rename on the same device to
21 ensure that new_name is valid and won´t conflict with other devices.
22
24Kernel Hackers Manual 2.6. June 2019 DEVICE_RENAME(9)