1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linu 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 2 3 name: nlctrl 3 name: nlctrl 4 protocol: genetlink-legacy 4 protocol: genetlink-legacy 5 uapi-header: linux/genetlink.h 5 uapi-header: linux/genetlink.h 6 6 7 doc: | 7 doc: | 8 genetlink meta-family that exposes informati 8 genetlink meta-family that exposes information about all genetlink 9 families registered in the kernel (including 9 families registered in the kernel (including itself). 10 10 11 definitions: 11 definitions: 12 - 12 - 13 name: op-flags 13 name: op-flags 14 type: flags 14 type: flags 15 enum-name: 15 enum-name: 16 entries: 16 entries: 17 - admin-perm 17 - admin-perm 18 - cmd-cap-do 18 - cmd-cap-do 19 - cmd-cap-dump 19 - cmd-cap-dump 20 - cmd-cap-haspol 20 - cmd-cap-haspol 21 - uns-admin-perm 21 - uns-admin-perm 22 - 22 - 23 name: attr-type 23 name: attr-type 24 enum-name: netlink-attribute-type 24 enum-name: netlink-attribute-type 25 type: enum 25 type: enum 26 entries: 26 entries: 27 - invalid 27 - invalid 28 - flag 28 - flag 29 - u8 29 - u8 30 - u16 30 - u16 31 - u32 31 - u32 32 - u64 32 - u64 33 - s8 33 - s8 34 - s16 34 - s16 35 - s32 35 - s32 36 - s64 36 - s64 37 - binary 37 - binary 38 - string 38 - string 39 - nul-string 39 - nul-string 40 - nested 40 - nested 41 - nested-array 41 - nested-array 42 - bitfield32 42 - bitfield32 43 - sint 43 - sint 44 - uint 44 - uint 45 45 46 attribute-sets: 46 attribute-sets: 47 - 47 - 48 name: ctrl-attrs 48 name: ctrl-attrs 49 name-prefix: ctrl-attr- 49 name-prefix: ctrl-attr- 50 attributes: 50 attributes: 51 - 51 - 52 name: family-id 52 name: family-id 53 type: u16 53 type: u16 54 - 54 - 55 name: family-name 55 name: family-name 56 type: string 56 type: string 57 - 57 - 58 name: version 58 name: version 59 type: u32 59 type: u32 60 - 60 - 61 name: hdrsize 61 name: hdrsize 62 type: u32 62 type: u32 63 - 63 - 64 name: maxattr 64 name: maxattr 65 type: u32 65 type: u32 66 - 66 - 67 name: ops 67 name: ops 68 type: indexed-array 68 type: indexed-array 69 sub-type: nest 69 sub-type: nest 70 nested-attributes: op-attrs 70 nested-attributes: op-attrs 71 - 71 - 72 name: mcast-groups 72 name: mcast-groups 73 type: indexed-array 73 type: indexed-array 74 sub-type: nest 74 sub-type: nest 75 nested-attributes: mcast-group-attrs 75 nested-attributes: mcast-group-attrs 76 - 76 - 77 name: policy 77 name: policy 78 type: nest-type-value 78 type: nest-type-value 79 type-value: [ policy-id, attr-id ] 79 type-value: [ policy-id, attr-id ] 80 nested-attributes: policy-attrs 80 nested-attributes: policy-attrs 81 - 81 - 82 name: op-policy 82 name: op-policy 83 type: nest-type-value 83 type: nest-type-value 84 type-value: [ op-id ] 84 type-value: [ op-id ] 85 nested-attributes: op-policy-attrs 85 nested-attributes: op-policy-attrs 86 - 86 - 87 name: op 87 name: op 88 type: u32 88 type: u32 89 - 89 - 90 name: mcast-group-attrs 90 name: mcast-group-attrs 91 name-prefix: ctrl-attr-mcast-grp- 91 name-prefix: ctrl-attr-mcast-grp- 92 enum-name: 92 enum-name: 93 attributes: 93 attributes: 94 - 94 - 95 name: name 95 name: name 96 type: string 96 type: string 97 - 97 - 98 name: id 98 name: id 99 type: u32 99 type: u32 100 - 100 - 101 name: op-attrs 101 name: op-attrs 102 name-prefix: ctrl-attr-op- 102 name-prefix: ctrl-attr-op- 103 enum-name: 103 enum-name: 104 attributes: 104 attributes: 105 - 105 - 106 name: id 106 name: id 107 type: u32 107 type: u32 108 - 108 - 109 name: flags 109 name: flags 110 type: u32 110 type: u32 111 enum: op-flags 111 enum: op-flags 112 enum-as-flags: true 112 enum-as-flags: true 113 - 113 - 114 name: policy-attrs 114 name: policy-attrs 115 name-prefix: nl-policy-type-attr- 115 name-prefix: nl-policy-type-attr- 116 enum-name: 116 enum-name: 117 attributes: 117 attributes: 118 - 118 - 119 name: type 119 name: type 120 type: u32 120 type: u32 121 enum: attr-type 121 enum: attr-type 122 - 122 - 123 name: min-value-s 123 name: min-value-s 124 type: s64 124 type: s64 125 - 125 - 126 name: max-value-s 126 name: max-value-s 127 type: s64 127 type: s64 128 - 128 - 129 name: min-value-u 129 name: min-value-u 130 type: u64 130 type: u64 131 - 131 - 132 name: max-value-u 132 name: max-value-u 133 type: u64 133 type: u64 134 - 134 - 135 name: min-length 135 name: min-length 136 type: u32 136 type: u32 137 - 137 - 138 name: max-length 138 name: max-length 139 type: u32 139 type: u32 140 - 140 - 141 name: policy-idx 141 name: policy-idx 142 type: u32 142 type: u32 143 - 143 - 144 name: policy-maxtype 144 name: policy-maxtype 145 type: u32 145 type: u32 146 - 146 - 147 name: bitfield32-mask 147 name: bitfield32-mask 148 type: u32 148 type: u32 149 - 149 - 150 name: mask 150 name: mask 151 type: u64 151 type: u64 152 - 152 - 153 name: pad 153 name: pad 154 type: pad 154 type: pad 155 - 155 - 156 name: op-policy-attrs 156 name: op-policy-attrs 157 name-prefix: ctrl-attr-policy- 157 name-prefix: ctrl-attr-policy- 158 enum-name: 158 enum-name: 159 attributes: 159 attributes: 160 - 160 - 161 name: do 161 name: do 162 type: u32 162 type: u32 163 - 163 - 164 name: dump 164 name: dump 165 type: u32 165 type: u32 166 166 167 operations: 167 operations: 168 enum-model: directional 168 enum-model: directional 169 name-prefix: ctrl-cmd- 169 name-prefix: ctrl-cmd- 170 list: 170 list: 171 - 171 - 172 name: getfamily 172 name: getfamily 173 doc: Get / dump genetlink families 173 doc: Get / dump genetlink families 174 attribute-set: ctrl-attrs 174 attribute-set: ctrl-attrs 175 do: 175 do: 176 request: 176 request: 177 value: 3 177 value: 3 178 attributes: 178 attributes: 179 - family-name 179 - family-name 180 reply: &all-attrs 180 reply: &all-attrs 181 value: 1 181 value: 1 182 attributes: 182 attributes: 183 - family-id 183 - family-id 184 - family-name 184 - family-name 185 - hdrsize 185 - hdrsize 186 - maxattr 186 - maxattr 187 - mcast-groups 187 - mcast-groups 188 - ops 188 - ops 189 - version 189 - version 190 dump: 190 dump: 191 reply: *all-attrs 191 reply: *all-attrs 192 - 192 - 193 name: getpolicy 193 name: getpolicy 194 doc: Get / dump genetlink policies 194 doc: Get / dump genetlink policies 195 attribute-set: ctrl-attrs 195 attribute-set: ctrl-attrs 196 dump: 196 dump: 197 request: 197 request: 198 value: 10 198 value: 10 199 attributes: 199 attributes: 200 - family-name 200 - family-name 201 - family-id 201 - family-id 202 - op 202 - op 203 reply: 203 reply: 204 value: 10 204 value: 10 205 attributes: 205 attributes: 206 - family-id 206 - family-id 207 - op-policy 207 - op-policy 208 - policy 208 - policy
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.