Lines Matching refs:udev_enum

168 	struct udev_enumerate *udev_enum;  in __wrap_udev_enumerate_new()  local
171 if ((udev_enum = calloc(1, sizeof(*udev_enum))) == NULL) in __wrap_udev_enumerate_new()
173 udev_enum->magic = UDEV_ENUM_MAGIC; in __wrap_udev_enumerate_new()
175 return udev_enum; in __wrap_udev_enumerate_new()
179 __wrap_udev_enumerate_add_match_subsystem(struct udev_enumerate *udev_enum, in __wrap_udev_enumerate_add_match_subsystem() argument
182 ASSERT_UDEV_ENUM(udev_enum); in __wrap_udev_enumerate_add_match_subsystem()
188 __wrap_udev_enumerate_scan_devices(struct udev_enumerate *udev_enum) in __wrap_udev_enumerate_scan_devices() argument
190 ASSERT_UDEV_ENUM(udev_enum); in __wrap_udev_enumerate_scan_devices()
195 __wrap_udev_enumerate_get_list_entry(struct udev_enumerate *udev_enum) in __wrap_udev_enumerate_get_list_entry() argument
197 ASSERT_UDEV_ENUM(udev_enum); in __wrap_udev_enumerate_get_list_entry()
198 if ((udev_enum->list_entry = calloc(1, in __wrap_udev_enumerate_get_list_entry()
199 sizeof(*udev_enum->list_entry))) == NULL) in __wrap_udev_enumerate_get_list_entry()
201 udev_enum->list_entry->magic = UDEV_LIST_ENTRY_MAGIC; in __wrap_udev_enumerate_get_list_entry()
203 return udev_enum->list_entry; in __wrap_udev_enumerate_get_list_entry()
214 __wrap_udev_enumerate_unref(struct udev_enumerate *udev_enum) in __wrap_udev_enumerate_unref() argument
216 ASSERT_UDEV_ENUM(udev_enum); in __wrap_udev_enumerate_unref()
217 if (udev_enum->list_entry) in __wrap_udev_enumerate_unref()
218 ASSERT_UDEV_LIST_ENTRY(udev_enum->list_entry); in __wrap_udev_enumerate_unref()
219 free(udev_enum->list_entry); in __wrap_udev_enumerate_unref()
220 free(udev_enum); in __wrap_udev_enumerate_unref()