| /kernel/linux/linux-6.6/Documentation/userspace-api/netlink/ |
| D | c-code-gen.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 4 Netlink spec C code generation 8 C code (uAPI, policies etc.). It also defines the additional properties 9 allowed in older families by the ``genetlink-c`` protocol level, 12 For brevity this document refers to ``name`` properties of various 14 of ``name`` in an attribute, and ``$family`` is the name of the 15 family (the global ``name`` property). 17 The upper case is used to denote literal values, e.g. ``$family-CMD`` 18 means the concatenation of ``$family``, a dash character, and the literal 22 and with dashes (``-``) replaced by underscores (``_``). [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | sockmap_listen.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2020 Cloudflare 6 * 1. BPF map operations - bpf_map_{update,lookup delete}_elem 7 * 2. BPF redirect helpers - bpf_{sk,msg}_redirect_map 8 * 3. BPF reuseport helper - bpf_sk_select_reuseport 53 if (__ret == -1) \ 61 if (__ret == -1) \ 69 if (__ret == -1) \ 77 if (__ret == -1) \ 85 if (__ret == -1) \ [all …]
|
| D | sk_assign.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2018 Facebook 3 // Copyright (c) 2019 Cloudflare 4 // Copyright (c) 2020 Isovalent, Inc. 38 tc = popen("tc -V", "r"); in configure_stack() 59 if (CHECK_FAIL(system("ip -6 route add local default dev lo"))) in configure_stack() 66 "direct-action object-file", prog, in configure_stack() 70 "run with -vv for more info\n")) in configure_stack() 81 fd = socket(addr->sa_family, type, 0); in start_server() 82 if (CHECK_FAIL(fd == -1)) in start_server() [all …]
|
| /kernel/linux/linux-6.6/Documentation/netlink/ |
| D | genetlink-c.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 24 name: 25 description: Name of the genetlink family. 30 description: Generic Netlink family version. Default is 1. [all …]
|
| D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 24 name: 25 description: Name of the genetlink family. 30 description: Generic Netlink family version. Default is 1. [all …]
|
| D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 24 name: 25 description: Name of the netlink family. 31 enum: [ netlink-raw ] # Trim [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ipset/ |
| D | ip_set_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu> 4 * Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org> 61 ip_set_dereference((inst)->ip_set_list)[id] 63 rcu_dereference_raw((inst)->ip_set_list)[id] 87 find_set_type(const char *name, u8 family, u8 revision) in find_set_type() argument 93 if (STRNCMP(type->name, name) && in find_set_type() 94 (type->family == family || in find_set_type() 95 type->family == NFPROTO_UNSPEC) && in find_set_type() 96 revision >= type->revision_min && in find_set_type() [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ipset/ |
| D | ip_set_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu> 4 * Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org> 57 rcu_dereference_protected((inst)->ip_set_list, \ 60 (inst)->is_deleted) 64 rcu_dereference_raw((inst)->ip_set_list)[id] 88 find_set_type(const char *name, u8 family, u8 revision) in find_set_type() argument 94 if (STRNCMP(type->name, name) && in find_set_type() 95 (type->family == family || in find_set_type() 96 type->family == NFPROTO_UNSPEC) && in find_set_type() [all …]
|
| /kernel/linux/linux-5.10/net/netlink/ |
| D | genetlink.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * NETLINK Generic Netlink Family 71 * Bit 1 is marked as already used since the drop-monitor code 76 * and the code no longer marks pre-reserved IDs as used. 78 * also abused this API and relied on family == group ID, we 79 * cater to that by giving it a static family and group ID. 89 static int genl_ctrl_event(int event, const struct genl_family *family, 98 static const struct genl_family *genl_family_find_byname(char *name) in genl_family_find_byname() argument 100 const struct genl_family *family; in genl_family_find_byname() local 103 idr_for_each_entry(&genl_fam_idr, family, id) in genl_family_find_byname() [all …]
|
| /kernel/linux/linux-6.6/drivers/w1/ |
| D | w1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net> 42 * on a static 1-wire bus. Memory is not allocated based on this number, just 63 return -ENODEV; in w1_master_probe() 70 dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name); in w1_master_release() 79 dev_dbg(dev, "%s: Releasing %s [%p]\n", __func__, sl->name, sl); in w1_slave_release() 81 w1_family_put(sl->family); in w1_slave_release() 82 sl->master->slave_count--; in w1_slave_release() 89 return sprintf(buf, "%s\n", sl->name); in name_show() 91 static DEVICE_ATTR_RO(name); [all …]
|
| /kernel/linux/linux-5.10/drivers/w1/ |
| D | w1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net> 40 * on a static 1-wire bus. Memory is not allocated based on this number, just 66 return -ENODEV; in w1_master_probe() 73 dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name); in w1_master_release() 82 dev_dbg(dev, "%s: Releasing %s [%p]\n", __func__, sl->name, sl); in w1_slave_release() 84 w1_family_put(sl->family); in w1_slave_release() 85 sl->master->slave_count--; in w1_slave_release() 92 return sprintf(buf, "%s\n", sl->name); in name_show() 94 static DEVICE_ATTR_RO(name); [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | sockmap_helpers.h | 37 if (__ret == -1) \ 45 if (__ret == -1) \ 53 if (__ret == -1) \ 61 if (__ret == -1) \ 69 if (__ret == -1) \ 74 #define xgetsockopt(fd, level, name, val, len) \ argument 76 int __ret = getsockopt((fd), (level), (name), (val), (len)); \ 77 if (__ret == -1) \ 78 FAIL_ERRNO("getsockopt(" #name ")"); \ 85 if (__ret == -1) \ [all …]
|
| D | sk_assign.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2018 Facebook 3 // Copyright (c) 2019 Cloudflare 4 // Copyright (c) 2020 Isovalent, Inc. 38 tc = popen("tc -V", "r"); in configure_stack() 59 if (CHECK_FAIL(system("ip -6 route add local default dev lo"))) in configure_stack() 66 "direct-action object-file", prog, in configure_stack() 70 "run with -vv for more info\n")) in configure_stack() 81 fd = socket(addr->sa_family, type, 0); in start_server() 82 if (CHECK_FAIL(fd == -1)) in start_server() [all …]
|
| D | sockmap_listen.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2020 Cloudflare 6 * 1. BPF map operations - bpf_map_{update,lookup delete}_elem 7 * 2. BPF redirect helpers - bpf_{sk,msg}_redirect_map 8 * 3. BPF reuseport helper - bpf_sk_select_reuseport 33 int family, int sotype, int mapfd) in test_insert_invalid() argument 39 value = -1; in test_insert_invalid() 51 int family, int sotype, int mapfd) in test_insert_opened() argument 57 s = xsocket(family, sotype, 0); in test_insert_opened() 58 if (s == -1) in test_insert_opened() [all …]
|
| /kernel/linux/linux-6.6/tools/net/ynl/ |
| D | ynl-gen-c.py | 2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 15 def c_upper(name): argument 16 return name.upper().replace('-', '_') 19 def c_lower(name): argument 20 return name.lower().replace('-', '_') 25 return 'ys->family_id' 30 … return f"mnl_cb_run2(ys->rx_buf, len, 0, 0, {cb}, {data},{ind}ynl_cb_array, NLMSG_MIN_TYPE)" 32 return f"mnl_cb_run2(ys->rx_buf, len, ys->seq, ys->portid,{ind}{cb}, {data},{ind}" + \ 37 def __init__(self, family, attr_set, attr, value): argument 38 super().__init__(family, attr_set, attr, value) [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/renesas/ |
| D | renesas-soc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2016 Glider bvba 17 const char name[16]; member 22 .name = "R-Car Gen1", 27 .name = "R-Car Gen2", 32 .name = "R-Car Gen3", 37 .name = "R-Mobile", 42 .name = "RZ/A1", 46 .name = "RZ/A2", 50 .name = "RZ/G1", [all …]
|
| /kernel/linux/linux-6.6/drivers/soc/renesas/ |
| D | renesas-soc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2014-2016 Glider bvba 17 const char name[16]; member 22 .name = "R-Car Gen1", 27 .name = "R-Car Gen2", 32 .name = "R-Car Gen3", 37 .name = "R-Car Gen4", 41 .name = "R-Mobile", 46 .name = "RZ/A1", 50 .name = "RZ/A2", [all …]
|
| /kernel/linux/linux-6.6/tools/net/ynl/lib/ |
| D | nlspec.py | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 26 family back reference to the full family 28 name name of the entity as listed in the spec (optional) 29 ident_name name which can be safely used as identifier in code (optional) 31 def __init__(self, family, yaml): argument 33 self.family = family 35 if 'name' in self.yaml: 36 self.name = self.yaml['name'] 37 self.ident_name = self.name.replace('-', '_') 40 family.add_unresolved(self) [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/netfilter/ |
| D | nft_nat.sh | 6 # Kselftest framework requirement - SKIP code is 4. 11 sfx=$(mktemp -u "XXXXXXXX") 12 ns0="ns0-$sfx" 13 ns1="ns1-$sfx" 14 ns2="ns2-$sfx" 18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| D | xt_recent.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2006 Patrick McHardy <kaber@trash.net> 4 * Copyright © CC Computer Consultants GmbH, 2007 - 2008 10 * Copyright 2002-2003, Stephen Frost, 2.5.x port by laforge@netfilter.org 38 MODULE_DESCRIPTION("Xtables: \"recently-seen\" host matching"); 70 u_int16_t family; member 79 char name[XT_RECENT_NAME_LEN]; member 113 return jhash_1word((__force u32)addr->ip, hash_rnd) & in recent_entry_hash4() 114 (ip_list_hash_size - 1); in recent_entry_hash4() 119 return jhash2((u32 *)addr->ip6, ARRAY_SIZE(addr->ip6), hash_rnd) & in recent_entry_hash6() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | xt_recent.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2006 Patrick McHardy <kaber@trash.net> 4 * Copyright © CC Computer Consultants GmbH, 2007 - 2008 10 * Copyright 2002-2003, Stephen Frost, 2.5.x port by laforge@netfilter.org 38 MODULE_DESCRIPTION("Xtables: \"recently-seen\" host matching"); 70 u_int16_t family; member 79 char name[XT_RECENT_NAME_LEN]; member 113 return jhash_1word((__force u32)addr->ip, hash_rnd) & in recent_entry_hash4() 114 (ip_list_hash_size - 1); in recent_entry_hash4() 119 return jhash2((u32 *)addr->ip6, ARRAY_SIZE(addr->ip6), hash_rnd) & in recent_entry_hash6() [all …]
|
| D | xt_connmark.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * xt_connmark - Netfilter module to operate on connection marks 5 * Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com> 7 * Copyright © CC Computer Consultants GmbH, 2007 - 2008 39 switch (info->mode) { in connmark_tg_shift() 41 oldmark = READ_ONCE(ct->mark); in connmark_tg_shift() 42 newmark = (oldmark & ~info->ctmask) ^ info->ctmark; in connmark_tg_shift() 43 if (info->shift_dir == D_SHIFT_RIGHT) in connmark_tg_shift() 44 newmark >>= info->shift_bits; in connmark_tg_shift() 46 newmark <<= info->shift_bits; in connmark_tg_shift() [all …]
|
| /kernel/linux/linux-6.6/net/netlink/ |
| D | genetlink.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * NETLINK Generic Netlink Family 55 static void genl_op_lock(const struct genl_family *family) in genl_op_lock() argument 57 if (!family->parallel_ops) in genl_op_lock() 61 static void genl_op_unlock(const struct genl_family *family) in genl_op_unlock() argument 63 if (!family->parallel_ops) in genl_op_unlock() 75 * Bit 1 is marked as already used since the drop-monitor code 80 * and the code no longer marks pre-reserved IDs as used. 82 * also abused this API and relied on family == group ID, we 83 * cater to that by giving it a static family and group ID. [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
| D | nft_nat.sh | 6 # Kselftest framework requirement - SKIP code is 4. 11 sfx=$(mktemp -u "XXXXXXXX") 12 ns0="ns0-$sfx" 13 ns1="ns1-$sfx" 14 ns2="ns2-$sfx" 18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then [all …]
|
| /kernel/linux/linux-6.6/drivers/dma/ti/ |
| D | k3-psil.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com 15 #include "k3-psil-priv.h" 21 { .family = "AM65X", .data = &am654_ep_map }, 22 { .family = "J721E", .data = &j721e_ep_map }, 23 { .family = "J7200", .data = &j7200_ep_map }, 24 { .family = "AM64X", .data = &am64_ep_map }, 25 { .family = "J721S2", .data = &j721s2_ep_map }, 26 { .family = "AM62X", .data = &am62_ep_map }, 27 { .family = "AM62AX", .data = &am62a_ep_map }, [all …]
|