Lines Matching refs:udev_data
397 static struct udev_callback_data udev_data; variable
402 udev_data.udev = udev_new(); in cras_udev_start_sound_subsystem_monitor()
403 assert(udev_data.udev != NULL); in cras_udev_start_sound_subsystem_monitor()
404 udev_data.mon = udev_monitor_new_from_netlink(udev_data.udev, "udev"); in cras_udev_start_sound_subsystem_monitor()
406 udev_monitor_filter_add_match_subsystem_devtype(udev_data.mon, in cras_udev_start_sound_subsystem_monitor()
408 udev_monitor_enable_receiving(udev_data.mon); in cras_udev_start_sound_subsystem_monitor()
409 udev_data.fd = udev_monitor_get_fd(udev_data.mon); in cras_udev_start_sound_subsystem_monitor()
411 r = cras_system_add_select_fd(udev_data.fd, in cras_udev_start_sound_subsystem_monitor()
412 udev_sound_subsystem_callback, &udev_data, in cras_udev_start_sound_subsystem_monitor()
418 enumerate_devices(&udev_data); in cras_udev_start_sound_subsystem_monitor()
423 udev_unref(udev_data.udev); in cras_udev_stop_sound_subsystem_monitor()