linux/fs/lockd
Chuck Lever e0018ec659 lockd: Use xdrgen XDR functions for the NLMv3 GRANTED_RES procedure
Continue the xdrgen migration by converting NLMv3 GRANTED_RES,
the callback that a remote NLM uses to return async GRANTED
results to this lockd.  The procedure now uses
nlm_svc_decode_nlm_res and nlm_svc_encode_void, generated
from the NLM version 3 protocol specification.

Setting pc_argzero to zero is safe because the generated
decoder fills the argp->xdrgen subfields before the procedure
runs, so the zeroing memset performed by the dispatch layer
is no longer needed.

Setting pc_xdrressize to XDR_void reflects that GRANTED_RES, as
a callback, returns no data; the previous value of St
over-reserved a status word in the reply buffer.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
History 2026-06-09 16:32:59 -04:00
..
clnt4xdr.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
clntlock.c lockd: Rename struct nlm_lock to lockd_lock 2026-06-09 16:32:59 -04:00
clntproc.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
clntxdr.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
host.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
lockd.h lockd: Use xdrgen XDR functions for the NLMv3 TEST procedure 2026-06-09 16:32:59 -04:00
Makefile Documentation: Add the RPC language description of NLM version 3 2026-06-09 16:32:59 -04:00
mon.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -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
nlm3xdr_gen.c Documentation: Add the RPC language description of NLM version 3 2026-06-09 16:32:59 -04:00
nlm3xdr_gen.h Documentation: Add the RPC language description of NLM version 3 2026-06-09 16:32:59 -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: Rename struct nlm_share to lockd_share 2026-06-09 16:32:59 -04:00
svc.c lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
svc4proc.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
svclock.c lockd: Rename struct nlm_lock to lockd_lock 2026-06-09 16:32:59 -04:00
svcproc.c lockd: Use xdrgen XDR functions for the NLMv3 GRANTED_RES procedure 2026-06-09 16:32:59 -04:00
svcshare.c lockd: Rename struct nlm_share to lockd_share 2026-06-09 16:32:59 -04:00
svcsubs.c lockd: Rename struct nlm_lock to lockd_lock 2026-06-09 16:32:59 -04:00
svcxdr.h lockd: Rename struct nlm_cookie to lockd_cookie 2026-06-09 16:32:59 -04:00
trace.c lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
trace.h lockd: Use xdrgen XDR functions for the NLMv3 GRANTED procedure 2026-06-09 16:32:59 -04:00
xdr.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
xdr.h lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00