209 lines · yaml
1# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)2 3name: nlctrl4protocol: genetlink-legacy5uapi-header: linux/genetlink.h6 7doc: |8 genetlink meta-family that exposes information about all genetlink9 families registered in the kernel (including itself).10 11definitions:12 -13 name: op-flags14 type: flags15 enum-name:16 entries:17 - admin-perm18 - cmd-cap-do19 - cmd-cap-dump20 - cmd-cap-haspol21 - uns-admin-perm22 -23 name: attr-type24 enum-name: netlink-attribute-type25 type: enum26 entries:27 - invalid28 - flag29 - u830 - u1631 - u3232 - u6433 - s834 - s1635 - s3236 - s6437 - binary38 - string39 - nul-string40 - nested41 - nested-array42 - bitfield3243 - sint44 - uint45 46attribute-sets:47 -48 name: ctrl-attrs49 name-prefix: ctrl-attr-50 attributes:51 -52 name: family-id53 type: u1654 -55 name: family-name56 type: string57 -58 name: version59 type: u3260 -61 name: hdrsize62 type: u3263 -64 name: maxattr65 type: u3266 -67 name: ops68 type: indexed-array69 sub-type: nest70 nested-attributes: op-attrs71 -72 name: mcast-groups73 type: indexed-array74 sub-type: nest75 nested-attributes: mcast-group-attrs76 -77 name: policy78 type: nest-type-value79 type-value: [ policy-id, attr-id ]80 nested-attributes: policy-attrs81 -82 name: op-policy83 type: nest-type-value84 type-value: [ op-id ]85 nested-attributes: op-policy-attrs86 -87 name: op88 type: u3289 -90 name: mcast-group-attrs91 name-prefix: ctrl-attr-mcast-grp-92 enum-name:93 attributes:94 -95 name: name96 type: string97 -98 name: id99 type: u32100 -101 name: op-attrs102 name-prefix: ctrl-attr-op-103 enum-name:104 attributes:105 -106 name: id107 type: u32108 -109 name: flags110 type: u32111 enum: op-flags112 enum-as-flags: true113 -114 name: policy-attrs115 name-prefix: nl-policy-type-attr-116 enum-name:117 attributes:118 -119 name: type120 type: u32121 enum: attr-type122 -123 name: min-value-s124 type: s64125 -126 name: max-value-s127 type: s64128 -129 name: min-value-u130 type: u64131 -132 name: max-value-u133 type: u64134 -135 name: min-length136 type: u32137 -138 name: max-length139 type: u32140 -141 name: policy-idx142 type: u32143 -144 name: policy-maxtype145 type: u32146 -147 name: bitfield32-mask148 type: u32149 -150 name: mask151 type: u64152 -153 name: pad154 type: pad155 -156 name: op-policy-attrs157 name-prefix: ctrl-attr-policy-158 enum-name:159 attributes:160 -161 name: do162 type: u32163 -164 name: dump165 type: u32166 167operations:168 enum-model: directional169 name-prefix: ctrl-cmd-170 list:171 -172 name: getfamily173 doc: Get / dump genetlink families174 attribute-set: ctrl-attrs175 do:176 request:177 value: 3178 attributes:179 - family-name180 reply: &all-attrs181 value: 1182 attributes:183 - family-id184 - family-name185 - hdrsize186 - maxattr187 - mcast-groups188 - ops189 - version190 dump:191 reply: *all-attrs192 -193 name: getpolicy194 doc: Get / dump genetlink policies195 attribute-set: ctrl-attrs196 dump:197 request:198 value: 10199 attributes:200 - family-name201 - family-id202 - op203 reply:204 value: 10205 attributes:206 - family-id207 - op-policy208 - policy209