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/cache_mngt.c
struct nl_msgtype* nl_msgtype_lookup(struct nl_cache_ops* ops, int msgtype)
{
    int i;

    for (i = 0; ops->co_msgtypes[i].mt_id >= 0; i++)
        if (ops->co_msgtypes[i].mt_id == msgtype)
            return &ops->co_msgtypes[i];

    return NULL;
}
/**
 * Lookup message type cache association
 * @arg ops			cache operations
 * @arg msgtype			netlink message type
 *
 * Searches for a matching message type association ing the specified
 * cache operations.
 *
 * @attention The guranteed lifetime of the returned message type is bound
 *            to the lifetime of the underlying cache operations.
 *
 * @return A message type association or NULL.
 */
Lookup message type cache association
@arg ops                     cache operations
@arg msgtype                 netlink message type

Searches for a matching message type association ing the specified
cache operations.

@attention The guranteed lifetime of the returned message type is bound
to the lifetime of the underlying cache operations.

@return A message type association or NULL.
Lookup message type cache association @arg ops cache operations @arg msgtype netlink message type Searches for a matching message type association ing the specified cache operations . @attention The guranteed lifetime of the returned message type is bound to the lifetime of the underlying cache operations . @return A message type association or NULL .
struct nl_msgtype* nl_msgtype_lookup(struct nl_cache_ops* ops, int msgtype)
{
    int i;
    for (i = 0; ops->co_msgtypes[i].mt_id >= 0; i++)
        if (ops->co_msgtypes[i].mt_id == msgtype)
            return &ops->co_msgtypes[i];
    return NULL;
}
struct nl_msgtype * nl_msgtype_lookup ( struct nl_cache_ops * ops , int msgtype ) { int i ; for ( i = 0 ; ops -> co_msgtypes [ i ] . mt_id >= 0 ; i ++ ) if ( ops -> co_msgtypes [ i ] . mt_id == msgtype ) return & ops -> co_msgtypes [ i ] ; return NULL ; }
Lookup message type cache association
 @arg ops                     cache operations
 @arg msgtype                 netlink message type
Lookup message type cache association @arg ops cache operations @arg msgtype netlink message type