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_new_probe(void)
{
    int i;
    blkid_probe pr;

    blkid_init_debug(0);
    pr = calloc(1, sizeof(struct blkid_struct_probe));
    if (!pr)
        return NULL;

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

    /* initialize chains */
    for (i = 0; i < BLKID_NCHAINS; i++)
    {
        pr->chains[i].driver = chains_drvs[i];
        pr->chains[i].flags = chains_drvs[i]->dflt_flags;
        pr->chains[i].enabled = chains_drvs[i]->dflt_enabled;
    }
    INIT_LIST_HEAD(&pr->buffers);
    INIT_LIST_HEAD(&pr->values);
    return pr;
}
/**
 * blkid_new_probe:
 *
 * Returns: a pointer to the newly allocated probe struct or NULL in case of
 * error.
 */
a pointer to the newly allocated probe struct or NULL in case of
error.
a pointer to the newly allocated probe struct or NULL in case of error .
blkid_probe blkid_new_probe(void)
{
    int i;
    blkid_probe pr;
    blkid_init_debug(0);
    pr = calloc(1, sizeof(struct blkid_struct_probe));
    if (!pr)
        return NULL;
    DBG(LOWPROBE, ul_debug("allocate a new probe"));
    for (i = 0; i < BLKID_NCHAINS; i++)
    {
        pr->chains[i].driver = chains_drvs[i];
        pr->chains[i].flags = chains_drvs[i]->dflt_flags;
        pr->chains[i].enabled = chains_drvs[i]->dflt_enabled;
    }
    INIT_LIST_HEAD(&pr->buffers);
    INIT_LIST_HEAD(&pr->values);
    return pr;
}
blkid_probe blkid_new_probe ( void ) { int i ; blkid_probe pr ; blkid_init_debug ( 0 ) ; pr = calloc ( 1 , sizeof ( struct blkid_struct_probe ) ) ; if ( ! pr ) return NULL ; DBG ( LOWPROBE , ul_debug ( " " ) ) ; for ( i = 0 ; i < BLKID_NCHAINS ; i ++ ) { pr -> chains [ i ] . driver = chains_drvs [ i ] ; pr -> chains [ i ] . flags = chains_drvs [ i ] -> dflt_flags ; pr -> chains [ i ] . enabled = chains_drvs [ i ] -> dflt_enabled ; } INIT_LIST_HEAD ( & pr -> buffers ) ; INIT_LIST_HEAD ( & pr -> values ) ; return pr ; }
blkid_new_probe:
 Returns: a pointer to the newly allocated probe struct or NULL in case of
 error.
blkid_new_probe : Returns : a pointer to the newly allocated probe struct or NULL in case of error .
/* initialize chains */