openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/lib/sysfs.c
char* sysfs_devno_to_devpath(dev_t devno, char* buf, size_t bufsiz)
{
    struct path_cxt* pc = ul_new_sysfs_path(devno, NULL, NULL);
    char* res = NULL;

    if (pc)
    {
        res = sysfs_blkdev_get_path(pc, buf, bufsiz);
        ul_unref_path(pc);
    }
    return res;
}
/*
 * Returns devname (e.g. "/dev/sda1") for the given devno.
 *
 * Please, use more robust blkid_devno_to_devname() in your applications.
 */
Returns devname  for the given devno.
Please, use more robust blkid_devno_to_devname() in your applications.
Returns devname for the given devno . Please use more robust blkid_devno_to_devname () in your applications .
char* sysfs_devno_to_devpath(dev_t devno, char* buf, size_t bufsiz)
{
    struct path_cxt* pc = ul_new_sysfs_path(devno, NULL, NULL);
    char* res = NULL;
    if (pc)
    {
        res = sysfs_blkdev_get_path(pc, buf, bufsiz);
        ul_unref_path(pc);
    }
    return res;
}
char * sysfs_devno_to_devpath ( dev_t devno , char * buf , size_t bufsiz ) { struct path_cxt * pc = ul_new_sysfs_path ( devno , NULL , NULL ) ; char * res = NULL ; if ( pc ) { res = sysfs_blkdev_get_path ( pc , buf , bufsiz ) ; ul_unref_path ( pc ) ; } return res ; }
Returns devname (e.g.
Returns devname ( e . g .