[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Include sysfs devices lacking a device symlink as node devices



On Tue, Mar 9, 2010 at 10:55 AM, Eric Blake <eblake redhat com> wrote:
> Where is udev_device_get_syspath declared?  I'm assuming it's generated,
> since 'git grep' didn't find it.  The only concern I have is whether it
> sanely reacts to a NULL argument, but since I couldn't find it, I'm not
> sure.  If it gracefully returns NULL on a NULL argument, then...

udev_device_get_syspath() comes from libudev:

/**
 * udev_device_get_syspath:
 * @udev_device: udev device
 *
 * Retrieve the sys path of the udev device. The path is an
 * absolute path and starts with the sys mount point.
 *
 * Returns: the sys path of the udev device
 **/
const char *udev_device_get_syspath(struct udev_device *udev_device)
{
        if (udev_device == NULL)
                return NULL;
        return udev_device->syspath;
}

--Ed


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]