summaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
AgeCommit message (Expand)Author
2023-04-22fcntl(2), flock(2): Assert FHASLOCK is clear if no fo_advlock.riastradh
2023-04-22file(9): New fo_advlock operation.riastradh
2023-02-24kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.riastradh
2023-02-23kern_descrip.c: Change membar_enter to membar_acquire in fd_getfile.riastradh
2023-02-23kern_descrip.c: Use atomic_store_relaxed/release for ff->ff_file.riastradh
2023-02-23kern_descrip.c: Fix membars around reference count decrement.riastradh
2021-06-29Add containment for the cloning devices hack in vn_open.dholland
2020-12-24Avoid negating the minimum size of pid_t (this overflows).nia
2020-08-28We already zeroed the struct, no point in zeroing things twice.christos
2020-08-28Just zero out struct file::f_lock when exposed to userland.riastradh
2020-08-26Instead of returning 0 when sysctl kern.expose_address=0, return a randomchristos
2020-05-23Move proc_lock into the data segment. It was dynamically allocated becausead
2020-02-01Load struct fdfile::ff_file with atomic_load_consume.riastradh
2020-02-01Load struct filedesc::fd_dt with atomic_load_consume.riastradh
2019-02-20handle O_NOSIGPIPE too.christos
2019-01-03Add KASSERT.maxv
2018-11-24Fix kernel pointer leaks in the kern.file sysctl, same as kern.file2.maxv
2018-11-24Rename fill_file -> fill_file2, since that's the KERN_FILE2 sysctl.maxv
2018-11-02Add LIST_INIT for filehead.maxv
2018-10-05Provide a sysctl kern.expose_address to expose kernel addresses inchristos
2018-09-13Don't leak kernel pointers to userland in kern.file2, same as kern.proc2.maxv
2018-09-03Rename min/max -> uimin/uimax for better honesty.riastradh
2018-07-03Avoid unportable signed integer left shift in fd_unused()kamil
2018-07-03Avoid unportable signed integer left shift in fd_copy()kamil
2018-07-03Avoid unportable signed integer left shift in fd_isused()kamil
2018-07-03Avoid unportable signed integer left shift in fd_used()kamil
2017-06-01remove checks for failure after memory allocation calls that cannot fail:chs
2017-05-11Explicitly set the flags instead of masking set values in.nat
2015-08-031. mask fflags so we don't tack on whateve oflags were passed from userlandchristos
2014-09-21remove casts to the same type.christos
2014-09-05Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to getmatt
2014-09-05Don't next structure and enum definitions.matt
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
2013-09-15Remove __CT_LOCAL_.. hackmartin
2013-09-14Avoid warnings for a local CTASSERTmartin
2013-09-05In fd_abort(), reset ff_exclose to preserve invariants expected by fd_free()pooka
2012-11-24Return EOPNOTSUPP for fnullop_kqfilter to prevent registration of unsupportedchristos
2012-01-25As discussed in tech-kern, provide the means to prevent delivery of SIGPIPEchristos
2011-09-25in fd_allocfile(), free the fd if we fail to allocate a file.chs
2011-07-15fail with EINVAL if flags not are not O_CLOEXEC|O_NONBLOCK in pipe2(2) andchristos
2011-06-26* Arrange for interfaces that create new file descriptors to be able tochristos
2011-04-24Drop extern inline for fd_getfile(). Apparently, GCC already ignores it.rmind
2011-04-23- Sprinkle __cacheline_aligned and __read_mostly in file descriptor code.rmind
2011-04-10- Add O_CLOEXEC to open(2)christos
2011-02-15Support FD_CLOEXEC in rump kernels.pooka
2011-01-28Move sysctl routines from init_sysctl.c to kern_descrip.c (forpooka
2011-01-01Update comment and inspired by that update variable naming too.pooka
2010-12-17update some commentsyamt