openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/attr.c
struct nlattr* nla_nest_start(struct nl_msg* msg, int attrtype)
{
    struct nlattr* start = (struct nlattr*)nlmsg_tail(msg->nm_nlh);

    if (nla_put(msg, attrtype, 0, NULL) < 0)
        return NULL;

    NL_DBG(2, "msg %p: attr <%p> %d: starting nesting\n", msg, start,
           start->nla_type);

    return start;
}
/**
 * Start a new level of nested attributes.
 * @arg msg		Netlink message.
 * @arg attrtype	Attribute type of container.
 *
 * @return Pointer to container attribute.
 */
Start a new level of nested attributes.
@arg msg             Netlink message.
@arg attrtype        Attribute type of container.

@return Pointer to container attribute.
Start a new level of nested attributes . @arg msg Netlink message . @arg attrtype Attribute type of container . @return Pointer to container attribute .
struct nlattr* nla_nest_start(struct nl_msg* msg, int attrtype)
{
    struct nlattr* start = (struct nlattr*)nlmsg_tail(msg->nm_nlh);
    if (nla_put(msg, attrtype, 0, NULL) < 0)
        return NULL;
    NL_DBG(2, "msg %p: attr <%p> %d: starting nesting\n", msg, start,
           start->nla_type);
    return start;
}
struct nlattr * nla_nest_start ( struct nl_msg * msg , int attrtype ) { struct nlattr * start = ( struct nlattr * ) nlmsg_tail ( msg -> nm_nlh ) ; if ( nla_put ( msg , attrtype , 0 , NULL ) < 0 ) return NULL ; NL_DBG ( 2 , " \n " , msg , start , start -> nla_type ) ; return start ; }
Start a new level of nested attributes.
Start a new level of nested attributes .