tools/testing/shared/linux/preempt.h

Source file repositories/reference/linux-study-clean/tools/testing/shared/linux/preempt.h

File Facts

System
Linux kernel
Corpus path
tools/testing/shared/linux/preempt.h
Extension
.h
Size
311 bytes
Lines
16
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __LINUX_PREEMPT_H
#define __LINUX_PREEMPT_H

extern int preempt_count;

#define preempt_disable()	uatomic_inc(&preempt_count)
#define preempt_enable()	uatomic_dec(&preempt_count)

static inline int in_interrupt(void)
{
	return 0;
}

#endif /* __LINUX_PREEMPT_H */

Annotation

Implementation Notes