1RPC_MALLOC(9)                  Linux Networking                  RPC_MALLOC(9)
2
3
4

NAME

6       rpc_malloc - allocate an RPC buffer
7

SYNOPSIS

9       void * rpc_malloc(struct rpc_task * task, size_t size);
10

ARGUMENTS

12       task
13           RPC task that will use this buffer
14
15       size
16           requested byte size
17

DESCRIPTION

19       To prevent rpciod from hanging, this allocator never sleeps, returning
20       NULL if the request cannot be serviced immediately. The caller can
21       arrange to sleep in a way that is safe for rpciod.
22
23       Most requests are ´small´ (under 2KiB) and can be serviced from a
24       mempool, ensuring that NFS reads and writes can always proceed, and
25       that there is good locality of reference for these buffers.
26
27       In order to avoid memory starvation triggering more writebacks of NFS
28       requests, we avoid using GFP_KERNEL.
29
31Kernel Hackers Manual 2.6.         June 2019                     RPC_MALLOC(9)
Impressum