libudev-queue.c revision 93a1e66efd4b0f4cda29c467d20d0f7510c0b3a8
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering This file is part of systemd.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering Copyright 2008-2012 Kay Sievers <kay@vrfy.org>
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering Copyright 2009 Alan Jenkins <alan-jenkins@tuffmail.co.uk>
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering systemd is free software; you can redistribute it and/or modify it
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering under the terms of the GNU Lesser General Public License as published by
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering (at your option) any later version.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering systemd is distributed in the hope that it will be useful, but
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering Lesser General Public License for more details.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering You should have received a copy of the GNU Lesser General Public License
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * SECTION:libudev-queue
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * @short_description: access to currently active events
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * This exports the current state of the udev processing queue.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * Opaque object representing the current event queue in the udev daemon.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * udev_queue_new:
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * @udev: udev library context
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * The initial refcount is 1, and needs to be decremented to
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering * release the resources of the udev queue context.
f0213e3796b4dd66e546e2de4d677db319f9171bTom Gundersen * Returns: the udev queue context, or #NULL on error.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering_public_ struct udev_queue *udev_queue_new(struct udev *udev)
return udev_queue;
return NULL;
return udev_queue;
return NULL;
return NULL;
return NULL;
return NULL;
_public_ int udev_queue_get_seqnum_is_finished(struct udev_queue *udev_queue, unsigned long long int seqnum)
return NULL;
int fd;
if (fd < 0)
return -errno;
r = -errno;
return fd;
return -EINVAL;