flag parameters
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 35 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | flag parameters: helper functioninclude/ lib/ lib/ | +33 | 6 replies | |
| 2/18 | flag parameters: socket and socketpairinclude/ net/ net/ +1 more | +29 | 14 replies | |
| 3/18 | flag parameters: pacceptinclude/ include/ include/ +2 more | +124 | 1 reply | |
| 4/18 | flag parameters: anon_inode_getfd extensionfs/ fs/ fs/ +3 more | +11 | 1 reply | |
| 5/18 | flag parameters: signalfdarch/ arch/ fs/ +5 more | +39 | 1 reply | |
| 6/18 | flag parameters: eventfdarch/ arch/ fs/ +4 more | +27 | 1 reply | |
| 7/18 | flag parameters: timerfd_createfs/ include/ | +13 | 1 reply | |
| 8/18 | flag parameters: epoll_createarch/ arch/ fs/ +4 more | +26 | 5 replies | |
| 9/18 | flag parameters: dup2arch/ arch/ fs/ +3 more | +19 | 0 replies | |
| 10/18 | flag parameters: pipearch/ arch/ arch/ +14 more | +35 | 0 replies | |
| 11/18 | flag parameters: inotify_initarch/ arch/ fs/ +4 more | +27 | 0 replies | |
| 12/18 | flag parametersi: NONBLOCK in anon_inode_getfdfs/ | +1 | 1 reply | |
| 13/18 | flag parameters: NONBLOCK in socket and socketpairinclude/ net/ | +8 | 1 reply | |
| 14/18 | flag parameters: NONBLOCK in signalfdfs/ include/ | +2 | 1 reply | |
| 15/18 | flag parameters: NONBLOCK in eventfdfs/ include/ | +2 | 1 reply | |
| 16/18 | flag parameters: NONBLOCK in timerfd_createfs/ include/ | +2 | 1 reply | |
| 17/18 | flag parameters: NONBLOCK in pipefs/ include/ kernel/ | +11 | 0 replies | |
| 18/18 | flag parameters: NONBLOCK in inotify_initfs/ include/ | +3 | 0 replies |
Reviews trailers per patch
13 of 18 patches have a Reviewed-by or Acked-by.
| Patch | Davide Libenzi | David S. Miller |
|---|---|---|
| 1/18 | A-b | |
| 2/18 | A-b | |
| 3/18 | A-b | |
| 4/18 | A-b | |
| 5/18 | A-b | |
| 6/18 | A-b | |
| 7/18 | A-b | |
| 8/18 | A-b | |
| 9/18 | ||
| 10/18 | ||
| 11/18 | ||
| 12/18 | A-b | |
| 13/18 | A-b | |
| 14/18 | A-b | |
| 15/18 | A-b | |
| 16/18 | A-b | |
| 17/18 | ||
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/18] flag parameters
This series replaces the individual patches I sent out before. They introduce changes for all the file descriptor-generating syscalls which do not have a flags parameter (or where it is not handled).
I think I addressed all the comments people made on the previous patches. New in this series is support for pipe and inotify_init. These are straight-forward extensions like the rest. Both require new userlevel interfaces, though. We need new userlevel interfaces for:
- paccept
- epoll_create2
- dup3
- pipe2
- inotify_init1
We do /not/ need new interfaces for
- signalfd4
- eventfd2
- timerfd_create
- socket
- socketpair
These either have flags parameters in the interface exported by glibc or (in case of the socket functions) overload a parameter with a bitset.
In addition to support for setting the close-on-exec flag I also added support to set the non-blocking mode. This is how most modern, scalable code should work and adding the support comes almost for free. Support to enable non-blocking is not added for dup3 (for obvious reasons) and epoll_create2. For the latter I have not found any support in the kernel. In case I missed something let me know and I'll add the few lines of code.
Each semantic change has a test program. For archs other than x86 and x86-64 you'll have to add the appropriate syscall number.
The patches all apply individually in sequence and the source tree remains compilable and runnable.
Regarding the little mapping tables for the flags. There are multiple copies with the same values (for now). We could play tricks for mergable ELF sections to avoid this minimal duplication.