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/libfdisk/src/label.c
int fdisk_locate_disklabel(struct fdisk_context* cxt, int n, const char** name,
                           uint64_t* offset, size_t* size)
{
    if (!cxt || !cxt->label)
        return -EINVAL;
    if (!cxt->label->op->locate)
        return -ENOSYS;

    DBG(CXT, ul_debugobj(cxt, "locating %d chunk of %s.", n, cxt->label->name));
    return cxt->label->op->locate(cxt, n, name, offset, size);
}
/**
 * fdisk_locate_disklabel:
 * @cxt: context
 * @n: N item
 * @name: return item name
 * @offset: return offset where is item
 * @size: of the item
 *
 * Locate disklabel and returns info about @n item of the label. For example
 * GPT is composed from two items, PMBR and GPT, n=0 return offset to PMBR and
 * n=1 return offset to GPT. For more details see 'D' expert fdisk command.
 *
 * Returns: 0 on success, <0 on error, 1 no more items.
 */


Locate disklabel and returns info about @n item of the label. For example
GPT is composed from two items, PMBR and GPT, n=0 return offset to PMBR and
n=1 return offset to GPT. For more details see 'D' expert fdisk command.

0 on success, <0 on error, 1 no more items.
Locate disklabel and returns info about @n item of the label . For example GPT is composed from two items PMBR and GPT n = 0 return offset to PMBR and n = 1 return offset to GPT . For more details see ' D ' expert fdisk command . 0 on success <0 on error 1 no more items .
int fdisk_locate_disklabel(struct fdisk_context* cxt, int n, const char** name,
                           uint64_t* offset, size_t* size)
{
    if (!cxt || !cxt->label)
        return -EINVAL;
    if (!cxt->label->op->locate)
        return -ENOSYS;
    DBG(CXT, ul_debugobj(cxt, "locating %d chunk of %s.", n, cxt->label->name));
    return cxt->label->op->locate(cxt, n, name, offset, size);
}
int fdisk_locate_disklabel ( struct fdisk_context * cxt , int n , const char * * name , uint64_t * offset , size_t * size ) { if ( ! cxt || ! cxt -> label ) return - EINVAL ; if ( ! cxt -> label -> op -> locate ) return - ENOSYS ; DBG ( CXT , ul_debugobj ( cxt , " " , n , cxt -> label -> name ) ) ; return cxt -> label -> op -> locate ( cxt , n , name , offset , size ) ; }
fdisk_locate_disklabel:
 @cxt: context
 @n: N item
 @name: return item name
 @offset: return offset where is item
 @size: of the item
fdisk_locate_disklabel : @cxt : context @n : N item @name : return item name @offset : return offset where is item @size : of the item