summaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
AgeCommit message (Expand)Author
2020-03-13In order to unlock flock(2), make writes to the f_iflags field of structanton
2020-02-26Release the file descriptor table lock before calling closef()Visa Hankala
2020-02-18Move setting of UF_EXCLOSE file descriptor flag inside finishdup().Visa Hankala
2020-02-05Move kernel locking inside knote_fdclose() from finishdup() andVisa Hankala
2020-02-01Make writes to the f_flag field of `struct file' MP-safe using atomicanton
2020-01-08Skip fdplock when freeing a file descriptor table. The lock is notVisa Hankala
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andVisa Hankala
2020-01-06Make kqlist part of filedesc and serialize access to it using fdplock.Visa Hankala
2020-01-03Fix a file descriptor close race in kqueue_register()Visa Hankala
2019-08-05Allow concurrent reads of the f_offset field of struct file byanton
2019-07-15Do not relock fdp in fdrelease(). This prevents unnecessary lockingVisa Hankala
2019-07-12Revert anton@ changes about read/write unlockingsolene
2019-07-10Make read/write of the f_offset field belonging to struct file MP-safe;anton
2019-07-03Lock the kernel when removing file descriptors from the descriptorVisa Hankala
2019-06-26Return EINVAL, not EBADF for fcntl(fd, F_GETLK) of a non-vnode.Todd C. Miller
2019-06-25Return EINVAL not EBADF when trying to lock a non-vnode.Todd C. Miller
2019-06-21Make resource limit access MP-safe. So far, the copy-on-write sharingVisa Hankala
2019-05-13dup2(n,n) would rlimit check before handling the n==n shortcut,Theo de Raadt
2018-11-05trace struct flock; ok visa@anton
2018-08-24Remove all knotes from a file descriptor before closing the file inVisa Hankala
2018-08-21Use explicit fd indexing to access fd_ofiles, to clarify the code.Visa Hankala
2018-08-20Make fnew() return a new file with only one reference. This makesVisa Hankala
2018-08-19Remove a stale/obvious comment.Visa Hankala
2018-08-10Update fd_freefile when filtering/closing kqueue descriptors in fdcopy().Joel Sing
2018-07-10Move socket & pipe specific logic in their ioctl handler.Martin Pieuchot
2018-07-07Fix an argument type error that happens when translating fcntl(F_SETOWN)Visa Hankala
2018-07-02Update the file reference count field `f_count' using atomic operationsVisa Hankala
2018-07-02Assert that fdp is locked in fdalloc().Visa Hankala
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.Visa Hankala
2018-06-27Raise file_pool's IPL to prevent deadlocks with the newly unlockedVisa Hankala
2018-06-26Remove a duplicate fd_used() call. The new file descriptor passedVisa Hankala
2018-06-25Implement DRI3/prime support. This allows graphics buffers to be passedMark Kettenis
2018-06-25Introduce fnew(), a function to initialize a `struct file'.Martin Pieuchot
2018-06-24Use atomic operations for updating `numfiles'. This makes the file countVisa Hankala
2018-06-20Unlock sendmsg(2) and sendto(2).Martin Pieuchot
2018-06-18Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-06-17Move kqueue related fields from struct filedesc to struct kqueue. Solves a panicanton
2018-06-05Revert introduction of fdinsert(), a sanitify check triggers whenMartin Pieuchot
2018-06-02Add an assert that makes explicit that finishdup() should receiveVisa Hankala
2018-06-02Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-05-31Use IPL_MPFLOOR for mutexes that can be taken w/ and w/o the KERNEL_LOCK().Martin Pieuchot
2018-05-29`f_mtx' must block interrupts as long as it is taken w/ and w/o theMartin Pieuchot
2018-05-28Returns EBUSY if dup2(2) is called for a LARVAL file.Martin Pieuchot
2018-05-08Change fd_iterfile() to not return imature fps instead of skipping themMartin Pieuchot
2018-05-08Protect per-file counters and document which lock is used to protectMartin Pieuchot
2018-05-02Remove proc from the parameters of vn_lock(). The parameter isVisa Hankala
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-04-26Rewrite fdcopy() to avoid memcpy()s.Martin Pieuchot
2018-04-25Introduce fd_iterfile() a new helper function to iterate over `filehead'.Martin Pieuchot