Lines Matching defs:bytes
1019 static void sock_release_reserved_memory(struct sock *sk, int bytes)
1021 /* Round down bytes to multiple of pages */
1022 bytes = round_down(bytes, PAGE_SIZE);
1024 WARN_ON(bytes > sk->sk_reserved_mem);
1025 WRITE_ONCE(sk->sk_reserved_mem, sk->sk_reserved_mem - bytes);
1029 static int sock_reserve_memory(struct sock *sk, int bytes)
1038 if (!bytes)
1041 pages = sk_mem_pages(bytes);
2366 pr_debug("%s: optmem leakage (%d bytes) detected\n",
3441 * @amount: number of bytes (rounded down to a PAGE_SIZE multiple)
4424 /* Copy 'size' bytes from userspace and return `size` back to userspace */
4444 /* This is the most common ioctl prep function, where the result (4 bytes) is