rpc_cancel_tasks(9)
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
rpc_create(9)rpc_clone_client(9)rpc_clone_client_set_auth(9)rpc_switch_client_transport(9)rpc_clnt_iterate_for_each_xprt(9)rpc_hold_client(9)rpc_release_client(9)rpc_bind_new_program(9)rpc_run_task(9)rpc_call_sync(9)rpc_call_async(9)rpc_run_bc_task(9)rpc_prepare_reply_pages(9)rpc_peeraddr(9)rpc_peeraddr2str(9)rpc_localaddr(9)rpc_net_ns(9)rpc_max_payload(9)rpc_max_bc_payload(9)rpc_force_rebind(9)rpc_clnt_test_and_add_xprt(9)rpc_clnt_setup_test_and_add_xprt(9)rpc_clnt_add_xprt(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms