https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/mngt.c#L106.

    Positional arguments:
    name -- string.

    Returns:
    genl_ops class instance or None.

def lookup_family_by_name(name):
    """https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/mngt.c#L106.

    Positional arguments:
    name -- string.

    Returns:
    genl_ops class instance or None.
    """
    for ops in nl_list_for_each_entry(genl_ops(), genl_ops_list, 'o_list'):
        if ops.o_name == name:
            return ops
    return None