/kernel/linux/linux-5.10/net/tipc/ |
H A D | name_distr.c | 87 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ) in tipc_named_publish() argument 93 if (publ->scope == TIPC_NODE_SCOPE) { in tipc_named_publish() 94 list_add_tail_rcu(&publ->binding_node, &nt->node_scope); in tipc_named_publish() 98 list_add_tail(&publ->binding_node, &nt->cluster_scope); in tipc_named_publish() 108 publ_to_item(item, publ); in tipc_named_publish() 115 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ) in tipc_named_withdraw() argument 122 list_del(&publ->binding_node); in tipc_named_withdraw() 124 if (publ->scope == TIPC_NODE_SCOPE) in tipc_named_withdraw() 135 publ_to_item(item, publ); in tipc_named_withdraw() 148 struct publication *publ; in named_distribute() local 224 tipc_publ_purge(struct net *net, struct publication *publ, u32 addr) tipc_publ_purge() argument 271 struct publication *publ, *tmp; tipc_publ_notify() local 405 struct publication *publ; tipc_named_reinit() local [all...] |
H A D | name_distr.h | 71 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ); 72 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ);
|
H A D | netlink_compat.c | 901 struct nlattr *publ[TIPC_NLA_PUBL_MAX + 1]; in tipc_nl_compat_name_table_dump() local 919 err = nla_parse_nested_deprecated(publ, TIPC_NLA_PUBL_MAX, in tipc_nl_compat_name_table_dump() 933 (type != nla_get_u32(publ[TIPC_NLA_PUBL_TYPE]))) in tipc_nl_compat_name_table_dump() 935 if (lowbound && (lowbound > nla_get_u32(publ[TIPC_NLA_PUBL_UPPER]))) in tipc_nl_compat_name_table_dump() 937 if (upbound && (upbound < nla_get_u32(publ[TIPC_NLA_PUBL_LOWER]))) in tipc_nl_compat_name_table_dump() 941 nla_get_u32(publ[TIPC_NLA_PUBL_TYPE])); in tipc_nl_compat_name_table_dump() 947 nla_get_u32(publ[TIPC_NLA_PUBL_LOWER]), in tipc_nl_compat_name_table_dump() 948 nla_get_u32(publ[TIPC_NLA_PUBL_UPPER])); in tipc_nl_compat_name_table_dump() 953 node = nla_get_u32(publ[TIPC_NLA_PUBL_NODE]); in tipc_nl_compat_name_table_dump() 955 tipc_node(node), nla_get_u32(publ[TIPC_NLA_PUBL_RE in tipc_nl_compat_name_table_dump() 974 struct nlattr *publ[TIPC_NLA_PUBL_MAX + 1]; __tipc_nl_compat_publ_dump() local [all...] |
H A D | name_table.c | 226 struct publication *publ = kzalloc(sizeof(*publ), GFP_ATOMIC); in tipc_publ_create() local 228 if (!publ) in tipc_publ_create() 231 publ->type = type; in tipc_publ_create() 232 publ->lower = lower; in tipc_publ_create() 233 publ->upper = upper; in tipc_publ_create() 234 publ->scope = scope; in tipc_publ_create() 235 publ->node = node; in tipc_publ_create() 236 publ->port = port; in tipc_publ_create() 237 publ in tipc_publ_create() [all...] |
H A D | socket.c | 2900 struct publication *publ; in tipc_sk_publish() local 2912 publ = tipc_nametbl_publish(net, seq->type, seq->lower, seq->upper, in tipc_sk_publish() 2914 if (unlikely(!publ)) in tipc_sk_publish() 2917 list_add(&publ->binding_sock, &tsk->publications); in tipc_sk_publish() 2927 struct publication *publ; in tipc_sk_withdraw() local 2934 list_for_each_entry_safe(publ, safe, &tsk->publications, binding_sock) { in tipc_sk_withdraw() 2936 if (publ->scope != scope) in tipc_sk_withdraw() 2938 if (publ->type != seq->type) in tipc_sk_withdraw() 2940 if (publ->lower != seq->lower) in tipc_sk_withdraw() 2942 if (publ in tipc_sk_withdraw() 3697 __tipc_nl_add_sk_publ(struct sk_buff *skb, struct netlink_callback *cb, struct publication *publ) __tipc_nl_add_sk_publ() argument [all...] |
/kernel/linux/linux-6.6/net/tipc/ |
H A D | name_distr.h | 70 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ); 71 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ);
|
H A D | netlink_compat.c | 900 struct nlattr *publ[TIPC_NLA_PUBL_MAX + 1]; in tipc_nl_compat_name_table_dump() local 918 err = nla_parse_nested_deprecated(publ, TIPC_NLA_PUBL_MAX, in tipc_nl_compat_name_table_dump() 932 (type != nla_get_u32(publ[TIPC_NLA_PUBL_TYPE]))) in tipc_nl_compat_name_table_dump() 934 if (lowbound && (lowbound > nla_get_u32(publ[TIPC_NLA_PUBL_UPPER]))) in tipc_nl_compat_name_table_dump() 936 if (upbound && (upbound < nla_get_u32(publ[TIPC_NLA_PUBL_LOWER]))) in tipc_nl_compat_name_table_dump() 940 nla_get_u32(publ[TIPC_NLA_PUBL_TYPE])); in tipc_nl_compat_name_table_dump() 946 nla_get_u32(publ[TIPC_NLA_PUBL_LOWER]), in tipc_nl_compat_name_table_dump() 947 nla_get_u32(publ[TIPC_NLA_PUBL_UPPER])); in tipc_nl_compat_name_table_dump() 952 node = nla_get_u32(publ[TIPC_NLA_PUBL_NODE]); in tipc_nl_compat_name_table_dump() 954 tipc_node(node), nla_get_u32(publ[TIPC_NLA_PUBL_RE in tipc_nl_compat_name_table_dump() 973 struct nlattr *publ[TIPC_NLA_PUBL_MAX + 1]; __tipc_nl_compat_publ_dump() local [all...] |
H A D | name_distr.c | 153 struct publication *publ; in named_distribute() local 161 list_for_each_entry(publ, pls, binding_node) { in named_distribute() 178 publ_to_item(item, publ); in named_distribute() 258 struct publication *publ, *tmp; in tipc_publ_notify() local 260 list_for_each_entry_safe(publ, tmp, nsub_list, binding_node) in tipc_publ_notify() 261 tipc_publ_purge(net, publ, addr); in tipc_publ_notify()
|
H A D | socket.c | 3707 struct publication *publ) in __tipc_nl_add_sk_publ() 3721 if (nla_put_u32(skb, TIPC_NLA_PUBL_KEY, publ->key)) in __tipc_nl_add_sk_publ() 3723 if (nla_put_u32(skb, TIPC_NLA_PUBL_TYPE, publ->sr.type)) in __tipc_nl_add_sk_publ() 3725 if (nla_put_u32(skb, TIPC_NLA_PUBL_LOWER, publ->sr.lower)) in __tipc_nl_add_sk_publ() 3727 if (nla_put_u32(skb, TIPC_NLA_PUBL_UPPER, publ->sr.upper)) in __tipc_nl_add_sk_publ() 3705 __tipc_nl_add_sk_publ(struct sk_buff *skb, struct netlink_callback *cb, struct publication *publ) __tipc_nl_add_sk_publ() argument
|