libudev-queue-export.c revision 48a9b173e88738ff4eefb3519f1d27711b417c8d
280N/Astruct udev_queue_export {
unsigned long long int initial_seqnum;
return NULL;
return NULL;
return NULL;
return udev_queue_export;
util_strscpyl(filename, sizeof(filename), udev_get_dev_path(udev_queue_export->udev), "/.udev/queue.tmp", NULL);
util_strscpyl(filename, sizeof(filename), udev_get_dev_path(udev_queue_export->udev), "/.udev/queue.bin", NULL);
long old_offset;
struct queue_devpaths {
unsigned int devpaths_size;
unsigned long long int range;
long devpath_offset;
unsigned long long int seqnum;
return NULL;
return NULL;
goto read_error;
if (devpath_len < 0)
goto read_error;
if (devpath_len > 0)
return devpaths;
return NULL;
unsigned long long int seqnum;
util_strscpyl(filename_tmp, sizeof(filename_tmp), udev_get_dev_path(udev_queue_export->udev), "/.udev/queue.tmp", NULL);
goto error;
int err;
unsigned short devpath_len;
seqnum++;
goto error;
util_strscpyl(filename, sizeof(filename), udev_get_dev_path(udev_queue_export->udev), "/.udev/queue.bin", NULL);
goto error;
unsigned short len;
goto write_error;
goto write_error;
goto write_error;
goto write_error;
enum device_state {
return sizeof(unsigned long long int) + sizeof(unsigned short int) + devpath_len;
int bytes;
int err;
return err;
size_t l;
s = filename;
l = util_strpcpyl(&s, sizeof(filename), udev_get_dev_path(udev_queue_export->udev), "/.udev/failed/", NULL);
switch (state) {
case DEVICE_FAILED:
case DEVICE_QUEUED:
case DEVICE_FINISHED:
s = filename_old;
l = util_strpcpyl(&s, sizeof(filename_old), udev_get_dev_path(udev_queue_export->udev), "/.udev/failed/", NULL);
int udev_queue_export_device_queued(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device)
int udev_queue_export_device_finished(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device)
int udev_queue_export_device_failed(struct udev_queue_export *udev_queue_export, struct udev_device *udev_device)