diff options
| author | 2026-02-17 17:06:54 -0500 | |
|---|---|---|
| committer | 2026-03-29 21:25:09 -0400 | |
| commit | 3b4839f09ca2615f7f6c99c9f9891a1a5b62071e (patch) | |
| tree | 75ec9a531d7244f05219536b8bea84bdbc270fc6 /tools/testing/ktest/examples/include/ssh:/git@git.zx2c4.com | |
| parent | Documentation: Add the RPC language description of NLM version 4 (diff) | |
lockd: Use xdrgen XDR functions for the NLMv4 NULL procedure
Hand-written XDR encoders and decoders are difficult to maintain
and can inadvertently diverge from protocol specifications. By
migrating to xdrgen-generated code, we improve type safety and
ensure the implementation exactly matches the NLM version 4
protocol specification.
This patch begins the migration by converting the NULL procedure
to use nlm4_svc_decode_void and nlm4_svc_encode_void generated
from Documentation/sunrpc/xdr/nlm4.x. The NULL procedure is
straightforward as it has no arguments or results, making it an
ideal starting point for this series.
The pc_xdrressize field is set to XDR_void (zero) to reflect
that this procedure returns no XDR-encoded data. The argzero
field is also set to zero since xdrgen decoders reliably
initialize all decoded values.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/testing/ktest/examples/include/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
