Page MenuHomeFreeBSD

libc/rpc: add userland side RPC server over netlink(4)
ClosedPublic

Authored by glebius on Mon, Jan 20, 9:02 PM.
Tags
None
Referenced Files
F109267433: D48550.diff
Sun, Feb 2, 7:58 PM
Unknown Object (File)
Sat, Feb 1, 10:41 AM
Unknown Object (File)
Fri, Jan 31, 9:08 AM
Unknown Object (File)
Fri, Jan 31, 4:06 AM
Unknown Object (File)
Sun, Jan 26, 7:34 PM
Unknown Object (File)
Sun, Jan 26, 4:47 PM
Unknown Object (File)
Sat, Jan 25, 9:10 AM
Unknown Object (File)
Sat, Jan 25, 9:10 AM
Subscribers

Details

Summary

To be used by NFS related daemons that provide RPC services to the kernel.
Some implementation details inside the new svc_nl.c.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Update with respect to committed changes and snl(3) as well as unstacked
changes to snl(3).

markj added inline comments.
lib/libc/rpc/Symbol.map
199

This should go in a new FBSD_1.8 version block, no? See lib/libc/Versions.def.

lib/libc/rpc/svc_nl.c
89

SVCXPRT *xprt = NULL; so that it can be handled under fail:

126

svc_xprt_free(xprt); ?

lib/libc/rpc/svc_nl.c
126

But there are no failures after svc_xprt_alloc()!

rmacklem added inline comments.
lib/libc/rpc/svc_nl.c
126

Yep. It might be a concern if someone adds an
additional failure point after this, but I suppose
it's ok to leave it as is.

This revision is now accepted and ready to land.Wed, Jan 29, 11:37 PM

Remove the "nl" suffix from the Netlink family name. This is unneeded
tautology. You will see just "rpc" in the genl(1) output. Application
will lookup just "rpc" in the Netlink.

The Linux habit (and our new developing habit) us that Netlink families
are named with what they do, no "nl" prefixes or suffixes, except the
special "netlink control" family which is "nlctrl".

This revision now requires review to proceed.Fri, Jan 31, 11:19 PM
This revision is now accepted and ready to land.Sat, Feb 1, 12:06 AM