diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-05-24 19:34:43 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-05-24 19:34:43 +0200 |
commit | b9598db3401282bb27b4aef77e3eee12015f7f29 (patch) | |
tree | 614f6d8df9613905ab8625c0985d0c0c96cfb39c /ipc/shm.c | |
parent | 0191f8697bbdfefcd36e7b8dc3eeddfe82893e4b (diff) | |
download | linux-stable-b9598db3401282bb27b4aef77e3eee12015f7f29.tar.gz linux-stable-b9598db3401282bb27b4aef77e3eee12015f7f29.tar.bz2 linux-stable-b9598db3401282bb27b4aef77e3eee12015f7f29.zip |
pipe: make F_{GET,SET}PIPE_SZ deal with byte sizes
Instead of requiring an exact number of pages as the argument and
return value, change the API to deal with number of bytes instead.
This also relaxes the requirement that the passed in size must
result in a power-of-2 page array size. Round up to the nearest
power-of-2 automatically and return the resulting size of the pipe
on success.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions