include/linux/posix-timers_types.h
Source file repositories/reference/linux-study-clean/include/linux/posix-timers_types.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/posix-timers_types.h- Extension
.h- Size
- 2259 bytes
- Lines
- 81
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/mutex_types.hlinux/timerqueue_types.hlinux/types.h
Detected Declarations
struct posix_cputimer_basestruct posix_cputimersstruct posix_cputimers_workstruct posix_cputimers
Annotated Snippet
struct posix_cputimer_base {
u64 nextevt;
struct timerqueue_head tqhead;
};
/**
* posix_cputimers - Container for posix CPU timer related data
* @bases: Base container for posix CPU clocks
* @timers_active: Timers are queued.
* @expiry_active: Timer expiry is active. Used for
* process wide timers to avoid multiple
* task trying to handle expiry concurrently
*
* Used in task_struct and signal_struct
*/
struct posix_cputimers {
struct posix_cputimer_base bases[CPUCLOCK_MAX];
unsigned int timers_active;
unsigned int expiry_active;
};
/**
* posix_cputimers_work - Container for task work based posix CPU timer expiry
* @work: The task work to be scheduled
* @mutex: Mutex held around expiry in context of this task work
* @scheduled: @work has been scheduled already, no further processing
*/
struct posix_cputimers_work {
struct callback_head work;
struct mutex mutex;
unsigned int scheduled;
};
#else /* CONFIG_POSIX_TIMERS */
struct posix_cputimers { };
#endif /* CONFIG_POSIX_TIMERS */
#endif /* _linux_POSIX_TIMERS_TYPES_H */
Annotation
- Immediate include surface: `linux/mutex_types.h`, `linux/timerqueue_types.h`, `linux/types.h`.
- Detected declarations: `struct posix_cputimer_base`, `struct posix_cputimers`, `struct posix_cputimers_work`, `struct posix_cputimers`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.