Lines Matching refs:udev_device

33 struct udev_device {  struct
35 struct udev_device *parent; argument
53 struct udev_device *__wrap_udev_device_get_parent_with_subsystem_devtype(
54 struct udev_device *, const char *, const char *);
55 struct udev_device *__wrap_udev_device_new_from_syspath(struct udev *,
62 const char *__wrap_udev_device_get_sysattr_value(struct udev_device *,
65 const char *__wrap_udev_device_get_devnode(struct udev_device *);
66 const char *__wrap_udev_device_get_sysnum(struct udev_device *);
71 void __wrap_udev_device_unref(struct udev_device *);
76 struct udev_device *
77 __wrap_udev_device_get_parent_with_subsystem_devtype(struct udev_device *child, in __wrap_udev_device_get_parent_with_subsystem_devtype()
93 __wrap_udev_device_get_sysattr_value(struct udev_device *udev_device, in __wrap_udev_device_get_sysattr_value() argument
96 ASSERT_UDEV_DEVICE(udev_device); in __wrap_udev_device_get_sysattr_value()
114 struct udev_device *
117 struct udev_device *udev_device; in __wrap_udev_device_new_from_syspath() local
121 if ((udev_device = calloc(1, sizeof(*udev_device))) == NULL) in __wrap_udev_device_new_from_syspath()
123 udev_device->magic = UDEV_DEVICE_MAGIC; in __wrap_udev_device_new_from_syspath()
125 return udev_device; in __wrap_udev_device_new_from_syspath()
129 __wrap_udev_device_get_devnode(struct udev_device *udev_device) in __wrap_udev_device_get_devnode() argument
131 ASSERT_UDEV_DEVICE(udev_device); in __wrap_udev_device_get_devnode()
136 __wrap_udev_device_get_sysnum(struct udev_device *udev_device) in __wrap_udev_device_get_sysnum() argument
138 ASSERT_UDEV_DEVICE(udev_device); in __wrap_udev_device_get_sysnum()
143 __wrap_udev_device_unref(struct udev_device *udev_device) in __wrap_udev_device_unref() argument
145 ASSERT_UDEV_DEVICE(udev_device); in __wrap_udev_device_unref()
146 if (udev_device->parent) { in __wrap_udev_device_unref()
147 ASSERT_UDEV_DEVICE(udev_device->parent); in __wrap_udev_device_unref()
148 free(udev_device->parent); in __wrap_udev_device_unref()
150 free(udev_device); in __wrap_udev_device_unref()