mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
13727f85b4
Generate stubs and uAPI for nfsd netlink protocol. For the moment, the new protocol has one operation: rpc_status. The generated header and source files are created by running: tools/net/ynl/ynl-regen.sh Tested-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Acked-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
90 lines
1.7 KiB
YAML
90 lines
1.7 KiB
YAML
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
|
|
name: nfsd
|
|
protocol: genetlink
|
|
uapi-header: linux/nfsd_netlink.h
|
|
|
|
doc: NFSD configuration over generic netlink.
|
|
|
|
attribute-sets:
|
|
-
|
|
name: rpc-status
|
|
attributes:
|
|
-
|
|
name: xid
|
|
type: u32
|
|
byte-order: big-endian
|
|
-
|
|
name: flags
|
|
type: u32
|
|
-
|
|
name: prog
|
|
type: u32
|
|
-
|
|
name: version
|
|
type: u8
|
|
-
|
|
name: proc
|
|
type: u32
|
|
-
|
|
name: service_time
|
|
type: s64
|
|
-
|
|
name: pad
|
|
type: pad
|
|
-
|
|
name: saddr4
|
|
type: u32
|
|
byte-order: big-endian
|
|
display-hint: ipv4
|
|
-
|
|
name: daddr4
|
|
type: u32
|
|
byte-order: big-endian
|
|
display-hint: ipv4
|
|
-
|
|
name: saddr6
|
|
type: binary
|
|
display-hint: ipv6
|
|
-
|
|
name: daddr6
|
|
type: binary
|
|
display-hint: ipv6
|
|
-
|
|
name: sport
|
|
type: u16
|
|
byte-order: big-endian
|
|
-
|
|
name: dport
|
|
type: u16
|
|
byte-order: big-endian
|
|
-
|
|
name: compound-ops
|
|
type: u32
|
|
multi-attr: true
|
|
|
|
operations:
|
|
list:
|
|
-
|
|
name: rpc-status-get
|
|
doc: dump pending nfsd rpc
|
|
attribute-set: rpc-status
|
|
dump:
|
|
pre: nfsd-nl-rpc-status-get-start
|
|
post: nfsd-nl-rpc-status-get-done
|
|
reply:
|
|
attributes:
|
|
- xid
|
|
- flags
|
|
- prog
|
|
- version
|
|
- proc
|
|
- service_time
|
|
- saddr4
|
|
- daddr4
|
|
- saddr6
|
|
- daddr6
|
|
- sport
|
|
- dport
|
|
- compound-ops
|