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/libblkid/src/probe.c
blkid_probe blkid_clone_probe(blkid_probe parent)
{
    blkid_probe pr;

    if (!parent)
        return NULL;

    DBG(LOWPROBE, ul_debug("allocate a probe clone"));

    pr = blkid_new_probe();
    if (!pr)
        return NULL;

    pr->fd = parent->fd;
    pr->off = parent->off;
    pr->size = parent->size;
    pr->devno = parent->devno;
    pr->disk_devno = parent->disk_devno;
    pr->blkssz = parent->blkssz;
    pr->flags = parent->flags;
    pr->parent = parent;

    pr->flags &= ~BLKID_FL_PRIVATE_FD;

    return pr;
}
/*
 * Clone @parent, the new clone shares all, but except:
 *
 *	- probing result
 *	- buffers if another device (or offset) is set to the prober
 */
Clone @parent, the new clone shares all, but except:
- probing result
- buffers if another device (or offset) is set to the prober
Clone @parent the new clone shares all but except : - probing result - buffers if another device ( or offset ) is set to the prober
blkid_probe blkid_clone_probe(blkid_probe parent)
{
    blkid_probe pr;
    if (!parent)
        return NULL;
    DBG(LOWPROBE, ul_debug("allocate a probe clone"));
    pr = blkid_new_probe();
    if (!pr)
        return NULL;
    pr->fd = parent->fd;
    pr->off = parent->off;
    pr->size = parent->size;
    pr->devno = parent->devno;
    pr->disk_devno = parent->disk_devno;
    pr->blkssz = parent->blkssz;
    pr->flags = parent->flags;
    pr->parent = parent;
    pr->flags &= ~BLKID_FL_PRIVATE_FD;
    return pr;
}
blkid_probe blkid_clone_probe ( blkid_probe parent ) { blkid_probe pr ; if ( ! parent ) return NULL ; DBG ( LOWPROBE , ul_debug ( " " ) ) ; pr = blkid_new_probe ( ) ; if ( ! pr ) return NULL ; pr -> fd = parent -> fd ; pr -> off = parent -> off ; pr -> size = parent -> size ; pr -> devno = parent -> devno ; pr -> disk_devno = parent -> disk_devno ; pr -> blkssz = parent -> blkssz ; pr -> flags = parent -> flags ; pr -> parent = parent ; pr -> flags &= ~ BLKID_FL_PRIVATE_FD ; return pr ; }
Clone @parent, the new clone shares all, but except:
      - probing result
      - buffers if another device (or offset) is set to the prober
Clone @parent the new clone shares all but except : - probing result - buffers if another device ( or offset ) is set to the prober