def nl_cache_ops_associate_safe(protocol, msgtype):
with cache_ops_lock:<EOL><INDENT>return _cache_ops_associate(protocol, msgtype)<EOL><DEDENT>
Associate protocol and message type to cache operations.

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/cache_mngt.c#L164

    Searches the registered cache operations for a matching protocol and message type.

    Positional arguments:
    protocol -- Netlink protocol (integer).
    msgtype -- Netlink message type (integer).

    Returns:
    The cache operations or None if no no match was found.