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
int sysfs_devno_is_wholedisk(dev_t devno)
{
    dev_t disk;

    if (sysfs_devno_to_wholedisk(devno, NULL, 0, &disk) != 0)
        return -1;

    return devno == disk;
}
/*
 * Return 0 or 1, or < 0 in case of error
 */
Return 0 or 1, or < 0 in case of error
Return 0 or 1 or < 0 in case of error
int sysfs_devno_is_wholedisk(dev_t devno)
{
    dev_t disk;
    if (sysfs_devno_to_wholedisk(devno, NULL, 0, &disk) != 0)
        return -1;
    return devno == disk;
}
int sysfs_devno_is_wholedisk ( dev_t devno ) { dev_t disk ; if ( sysfs_devno_to_wholedisk ( devno , NULL , 0 , & disk ) != 0 ) return -1 ; return devno == disk ; }
Return 0 or 1, or < 0 in case of error
Return 0 or 1 or < 0 in case of error