summaryrefslogtreecommitdiff
path: root/sys/kern/sys_pipe.c
AgeCommit message (Expand)Author
2020-12-30Set klist lock for pipes.Visa Hankala
2020-12-25Refactor klist insertion and removalVisa Hankala
2020-12-11Simplify filt_pipedetach()Visa Hankala
2020-06-29Bring back revision 1.122 with a fix preventing a use-after-free byanton
2020-06-19backout pipe change, it crashes some archTheo de Raadt
2020-06-17Instead of performing three distinct allocations per created pipe,anton
2020-06-15Set __EV_HUP when the conditions matching poll(2)'s POLLUP are found.Martin Pieuchot
2020-04-07Abstract the head of knote lists. This allows extending the lists,Visa Hankala
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowVisa Hankala
2020-02-16Unconditionally acquiring a write lock in pipe_ioctl() is quiteanton
2020-02-14Push the KERNEL_LOCK() insidge pgsigio() and selwakeup().Martin Pieuchot
2020-02-01Back out previous. Nothing wrong with the diff per se but I should haveanton
2020-02-01Grab the kernel lock in pgsigio() as it's strictly needed whileanton
2020-01-12condense commentanton
2020-01-12Get rid of redundant parenthesis.anton
2020-01-09Replace the global pipe_lock with a more fine-grained lock per pipeanton
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andVisa Hankala
2020-01-05Constify instances of struct fileops.Visa Hankala
2020-01-04Eliminate some minor differences between pipe_read() and pipe_write():anton
2020-01-03Rename the pipe I/O lock routines for improved clarity. This is just aanton
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
2019-12-27Remove the kernel lock in pipe read and write routines since everythinganton
2019-12-25Condense a few multi line comments into single line ones. While hereanton
2019-12-25Protect remaining fields of `struct pipe' using the pipe_lock. In orderanton
2019-12-19Start protecting the pipe_peer member of `struct pipe' using theanton
2019-11-29add missing parens around return expression and zap empty lineanton
2019-11-29Start protecting the pipe_busy field of struct pipe using a globalanton
2019-11-19When waiting on pipe I/O, simplify the unlock/relock logic usinganton
2019-11-11Extended the scope of the pipelock() in pipe_write() making the lockinganton
2019-11-10Invert a conditional in pipe_write() for reduced indent and inanton
2019-11-09Replace the hand-rolled pipe lock with a rwlock. A necessary first stepanton
2019-07-16move the whole `struct pipe' allocation and initialization inside pipe_create()Sebastien Marie
2019-07-15revisit pipe initialization and buffer managementSebastien Marie
2019-07-15Do not relock fdp in fdrelease(). This prevents unnecessary lockingVisa Hankala
2019-07-14rename PIPE_WANT to PIPE_WANTD.Sebastien Marie
2019-07-13pipe_write() do opportunistic buffer resizing, when the buffer is empty.Sebastien Marie
2019-07-09backout the unlock of pipe(2) and pipe2(2)Sebastien Marie
2019-07-09unlock pipe(2) and pipe2(2) syscallsSebastien Marie
2019-06-22push the KERNEL_LOCK deeper on read(2) and write(2)Sebastien Marie
2018-11-13Fix fcntl(fd, F_GETOWN) with pipes. As a regressionVisa Hankala
2018-11-12Utilize sigio with pipes. This makes fcntl(fd, F_SETOWN, arg) correctlyVisa Hankala
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
2018-08-15Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This preventsVisa Hankala
2018-08-13Make it possible to run pipe(2) and pipe2(2) mostly w/o KERNEL_LOCK():Martin Pieuchot
2018-07-10Move socket & pipe specific logic in their ioctl handler.Martin Pieuchot
2018-06-18Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-06-05Revert introduction of fdinsert(), a sanitify check triggers whenMartin Pieuchot
2018-06-02Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-04-10Convert 'struct fileops' definitions to C99.Martin Pieuchot
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther