Expand description
Linux file descriptors and file descriptions (equivalent to Linux struct files).
Modules§
- descriptor_
table - epoll
- eventfd
- listener
- Types for emitting and subscribing to
Fileevents. - pipe
- shared_
buf - A buffer for files that need to share a buffer with other files. Example use-cases are pipes and unix sockets. This buffer supports notifying files when readers or writers are added or removed.
- socket
- timerfd
Structs§
- Counted
Legacy File Ref - Represents a counted reference to a legacy file object. Will decrement the legacy file’s ref count when dropped.
- Descriptor
- A file descriptor that reference an open file. Also contains flags that change the behaviour of this file descriptor.
- File
Mode - These are flags that should generally not change (analagous to the Linux
filp->f_mode). Since the plugin will never see these values and they’re not exposed by the kernel, we don’t match the kernelFMODE_values here. - File
Signals - File-related signals that listeners can watch for.
- File
State - Flags representing the state of a file.
- File
Status - “File status flags” as specified in open(2), as “all the remaining flags” that aren’t specified as creation or access flags.
- Legacy
File Counter - Used to track how many descriptors are open for a
LegacyFile. - Open
File - Represents a POSIX file description, or a Linux
struct file.
Enums§
- Compat
File - A compatibility wrapper around an
OpenFileorLegacyFileCounter. - Drop
Posix Record Locks - For functions that involve closing descriptors; specifies for which
ProcessIdposix record locks ought to be freed, if any. - File
- A wrapper for any type of file object.
- FileRef
- Wraps an immutably borrowed
File. Created fromFile::borroworFile::try_borrow. - File
RefMut - Wraps a mutably borrowed
File. Created fromFile::borrow_mutorFile::try_borrow_mut.