| udev.h | | udev.h | |
| | | | |
| skipping to change at line 72 | | skipping to change at line 72 | |
| char kernel_number[NAME_SIZE]; | | char kernel_number[NAME_SIZE]; | |
| char driver[NAME_SIZE]; /* device driver name */ | | char driver[NAME_SIZE]; /* device driver name */ | |
| }; | | }; | |
| | | | |
| struct udevice { | | struct udevice { | |
| /* device event */ | | /* device event */ | |
| struct sysfs_device *dev; /* points to dev_local by de
fault */ | | struct sysfs_device *dev; /* points to dev_local by de
fault */ | |
| struct sysfs_device dev_local; | | struct sysfs_device dev_local; | |
| struct sysfs_device *dev_parent; /* current parent device use
d for matching */ | | struct sysfs_device *dev_parent; /* current parent device use
d for matching */ | |
| char action[NAME_SIZE]; | | char action[NAME_SIZE]; | |
|
| | | char *devpath_old; | |
| | | | |
| /* node */ | | /* node */ | |
| char name[PATH_SIZE]; | | char name[PATH_SIZE]; | |
| struct list_head symlink_list; | | struct list_head symlink_list; | |
| int symlink_final; | | int symlink_final; | |
| char owner[NAME_SIZE]; | | char owner[NAME_SIZE]; | |
| int owner_final; | | int owner_final; | |
| char group[NAME_SIZE]; | | char group[NAME_SIZE]; | |
| int group_final; | | int group_final; | |
| mode_t mode; | | mode_t mode; | |
| | | | |
| skipping to change at line 134 | | skipping to change at line 135 | |
| | | | |
| /* udev_node.c */ | | /* udev_node.c */ | |
| extern int udev_node_mknod(struct udevice *udev, const char *file, dev_t de
vt, mode_t mode, uid_t uid, gid_t gid); | | extern int udev_node_mknod(struct udevice *udev, const char *file, dev_t de
vt, mode_t mode, uid_t uid, gid_t gid); | |
| extern void udev_node_update_symlinks(struct udevice *udev, struct udevice
*udev_old); | | extern void udev_node_update_symlinks(struct udevice *udev, struct udevice
*udev_old); | |
| extern int udev_node_add(struct udevice *udev); | | extern int udev_node_add(struct udevice *udev); | |
| extern int udev_node_remove(struct udevice *udev); | | extern int udev_node_remove(struct udevice *udev); | |
| | | | |
| /* udev_db.c */ | | /* udev_db.c */ | |
| extern int udev_db_add_device(struct udevice *dev); | | extern int udev_db_add_device(struct udevice *dev); | |
| extern int udev_db_delete_device(struct udevice *dev); | | extern int udev_db_delete_device(struct udevice *dev); | |
|
| | | extern int udev_db_rename(const char *devpath_old, const char *devpath); | |
| extern int udev_db_get_device(struct udevice *udev, const char *devpath); | | extern int udev_db_get_device(struct udevice *udev, const char *devpath); | |
| extern int udev_db_get_devices_by_name(const char *name, struct list_head *
name_list); | | extern int udev_db_get_devices_by_name(const char *name, struct list_head *
name_list); | |
| extern int udev_db_get_all_entries(struct list_head *name_list); | | extern int udev_db_get_all_entries(struct list_head *name_list); | |
| | | | |
| /* udev_utils.c */ | | /* udev_utils.c */ | |
| struct name_entry { | | struct name_entry { | |
| struct list_head node; | | struct list_head node; | |
| char name[PATH_SIZE]; | | char name[PATH_SIZE]; | |
| unsigned int ignore_error:1; | | unsigned int ignore_error:1; | |
| }; | | }; | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 2 lines changed or added | |
|