diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-08-14 09:02:20 +1200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-11-06 13:14:07 -0700 |
| commit | bc1be43eef99f6119b8df6b01f77283f55a715d0 (patch) | |
| tree | 5630a696e307e6f5cc27030b2182dc11f7cf36c0 /man2/fcntl.2 | |
| parent | ef422cb6e139b6b1cb6e364f96610ba3f73f307e (diff) | |
| download | man-pages-bc1be43eef99f6119b8df6b01f77283f55a715d0.tar.gz | |
fcntl.2: F_GETPIPE_SZ allocates next power-of-2 multiple of requested size
Add some detail about current implementation, since this helps
the user understand the effect of the user pipe limits added in
Linux 4.5 (described in pipe(7)).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/fcntl.2')
| -rw-r--r-- | man2/fcntl.2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/man2/fcntl.2 b/man2/fcntl.2 index 459912db0f..464fb5428d 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -1337,7 +1337,10 @@ When allocating the buffer for the pipe, the kernel may use a capacity larger than .IR arg , if that is convenient for the implementation. -The actual capacity that is set is returned as the function result. +(In the current implementation, +the allocation is the next higher power-of-two page-size multiple +of the requested size.) +The actual capacity (in bytes) that is set is returned as the function result. Attempting to set the pipe capacity smaller than the amount of buffer space currently used to store data produces the error |
