mirror-linux/fs/lockd
Chuck Lever 5bc37b759e Documentation: Add the RPC language description of NLM version 4
In order to generate source code to encode and decode NLMv4 protocol
elements, include a copy of the RPC language description of NLMv4
for xdrgen to process. The language description is an amalgam of
RFC 1813 and the Open Group's XNFS specification:

  https://pubs.opengroup.org/onlinepubs/9629799/chap10.htm

The C code committed here was generated from the new nlm4.x file
using tools/net/sunrpc/xdrgen/xdrgen.

The goals of replacing hand-written XDR functions with ones that
are tool-generated are to improve memory safety and make XDR
encoding and decoding less brittle to maintain.

The xdrgen utility derives both the type definitions and the
encode/decode functions directly from protocol specifications,
using names and symbols familiar to anyone who knows those specs.
Unlike hand-written code that can inadvertently diverge from the
specification, xdrgen guarantees that the generated code matches
the specification exactly.

We would eventually like xdrgen to generate Rust code as well,
making the conversion of the kernel's NFS stacks to use Rust just
a little easier for us.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2026-03-29 21:25:09 -04:00
..
Makefile Documentation: Add the RPC language description of NLM version 4 2026-03-29 21:25:09 -04:00
clnt4xdr.c lockd: Move nlm4svc_set_file_lock_range() 2026-03-29 21:25:09 -04:00
clntlock.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
clntproc.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
clntxdr.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
host.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
lockd.h lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
mon.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
netlink.c tools: ynl-gen: add regeneration comment 2025-11-25 19:20:42 -08:00
netlink.h tools: ynl-gen: add regeneration comment 2025-11-25 19:20:42 -08:00
netns.h lockd: add netlink control interface 2025-03-10 09:10:53 -04:00
nlm.h lockd: Make linux/lockd/nlm.h an internal header 2026-03-29 21:25:09 -04:00
nlm4xdr_gen.c Documentation: Add the RPC language description of NLM version 4 2026-03-29 21:25:09 -04:00
nlm4xdr_gen.h Documentation: Add the RPC language description of NLM version 4 2026-03-29 21:25:09 -04:00
procfs.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
procfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
share.h lockd: Move share.h from include/linux/lockd/ to fs/lockd/ 2026-03-29 21:25:09 -04:00
svc.c lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
svc4proc.c lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
svclock.c sunrpc: Fix compilation error (`make W=1`) when dprintk() is no-op 2026-03-29 21:25:09 -04:00
svcproc.c lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
svcshare.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
svcsubs.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
svcxdr.h NLM: Fix svcxdr_encode_owner() 2021-09-17 10:35:10 -04:00
trace.c lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
trace.h lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
xdr.c lockd: Relocate include/linux/lockd/lockd.h 2026-03-29 21:25:09 -04:00
xdr.h lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
xdr4.c lockd: Move nlm4svc_set_file_lock_range() 2026-03-29 21:25:09 -04:00
xdr4.h lockd: Move nlm4svc_set_file_lock_range() 2026-03-29 21:25:09 -04:00