rpc_cancel_tasks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual, bestie β€” today's main character is rpc_cancel_tasks(9) and we're gonna understand it fr fr πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

rpc_cancel_tasks β€” try to cancel a set of RPC tasks. that's the whole vibe: not "definitely cancel", it's "try to cancel", no cap 🫢

✨ SYNOPSIS ✨

unsigned long rpc_cancel_tasks (struct rpc_clnt *clnt , int error , bool (*fnmatch)(const struct rpc_task *, const void *) , const void *data );

🌸 ARGUMENTS 🌸

  • clnt β€” pointer to RPC client. like, the RPC client we're working with πŸ’–
  • error β€” RPC task error value to set. and yes, DESCRIPTION is gonna yell about the negative part, so stay tuned 🚨
  • fnmatch β€” pointer to selector function. this is the little matchmaker that picks which tasks are in the set πŸ‘‘
  • data β€” user data. it gets passed along for the selector to use, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the actual tea: it uses fnmatch to define a set of RPC tasks that are to be cancelled. that's the selector's whole job β€” decide which tasks are in the cancellation set πŸ’…

🚨 important caveat, bestie: the argument error must be a negative error value. not zero, not positive β€” negative. this is not a drill 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./net/sunrpc/clnt.c


mwah πŸ’‹ that's the page! source/version: ./net/sunrpc Β· date: October 2026 Β· manual page: rpc_cancel_tasks(9) β€” bye bestie, go cancel some tasks (or try to) 🫢🌈

πŸ“¦ where this page comes from