Lines Matching defs:bytes
1008 static void sock_release_reserved_memory(struct sock *sk, int bytes)
1010 /* Round down bytes to multiple of pages */
1011 bytes = round_down(bytes, PAGE_SIZE);
1013 WARN_ON(bytes > sk->sk_reserved_mem);
1014 WRITE_ONCE(sk->sk_reserved_mem, sk->sk_reserved_mem - bytes);
1018 static int sock_reserve_memory(struct sock *sk, int bytes)
1027 if (!bytes)
1030 pages = sk_mem_pages(bytes);
2209 pr_debug("%s: optmem leakage (%d bytes) detected\n",
3181 * @amount: number of bytes (rounded down to a PAGE_SIZE multiple)
4160 /* Copy 'size' bytes from userspace and return `size` back to userspace */
4180 /* This is the most common ioctl prep function, where the result (4 bytes) is