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/socket.c
struct nl_sock* nl_socket_alloc(void)
{
    struct nl_cb* cb;
    struct nl_sock* sk;

    cb = nl_cb_alloc(default_cb);
    if (!cb)
        return NULL;

    /* will increment cb reference count on success */
    sk = __alloc_socket(cb);

    nl_cb_put(cb);

    return sk;
}
/**
 * Allocate new netlink socket
 *
 * @return Newly allocated netlink socket or NULL.
 */
Allocate new netlink socket
@return Newly allocated netlink socket or NULL.
Allocate new netlink socket @return Newly allocated netlink socket or NULL .
struct nl_sock* nl_socket_alloc(void)
{
    struct nl_cb* cb;
    struct nl_sock* sk;
    cb = nl_cb_alloc(default_cb);
    if (!cb)
        return NULL;
    sk = __alloc_socket(cb);
    nl_cb_put(cb);
    return sk;
}
struct nl_sock * nl_socket_alloc ( void ) { struct nl_cb * cb ; struct nl_sock * sk ; cb = nl_cb_alloc ( default_cb ) ; if ( ! cb ) return NULL ; sk = __alloc_socket ( cb ) ; nl_cb_put ( cb ) ; return sk ; }
Allocate new netlink socket
 @return Newly allocated netlink socket or NULL.
Allocate new netlink socket @return Newly allocated netlink socket or NULL .
/* will increment cb reference count on success */