Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

struct nl_msgtype* nl_msgtype_lookup ( struct nl_cache_ops ops,
int  msgtype 
) [read]

Lookup message type cache association

  • ops cache operations
  • msgtype netlink message type
Searches for a matching message type association ing the specified cache operations.

Returns:
A message type association or NULL.

Definition at line 86 of file cache_mngt.c.

References nl_cache_ops::co_msgtypes, and nl_msgtype::mt_id.

{
      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;
}


Generated by  Doxygen 1.6.0   Back to index