mirror of
https://github.com/drasko/codezero.git
synced 2026-01-16 04:43:16 +01:00
20 lines
369 B
C
20 lines
369 B
C
/*
|
|
* Kernel preemption functions.
|
|
*/
|
|
#ifndef __PREEMPT_H__
|
|
#define __PREEMPT_H__
|
|
|
|
#if !defined(__LINUX_CONTAINER__)
|
|
|
|
void preempt_enable(void);
|
|
void preempt_disable(void);
|
|
int preemptive(void);
|
|
int preempt_count(void);
|
|
|
|
int in_nested_irq_context(void);
|
|
int in_irq_context(void);
|
|
int in_task_context(void);
|
|
|
|
#endif /* __LINUX_CONTAINER__ */
|
|
#endif /* __PREEMPT_H__ */
|