mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Define some more LinuxKPI task related macros.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
f24fc4834a
commit
b8a8ed7c96
1 changed files with 6 additions and 0 deletions
|
|
@ -69,6 +69,12 @@ struct task_struct {
|
|||
|
||||
#define current ((struct task_struct *)curthread->td_lkpi_task)
|
||||
|
||||
#define task_pid(task) ((task)->task_thread->td_proc->p_pid)
|
||||
#define task_pid_nr(task) ((task)->task_thread->td_tid)
|
||||
#define get_pid(x) (x)
|
||||
#define put_pid(x)
|
||||
#define current_euid() (curthread->td_ucred->cr_uid)
|
||||
|
||||
#define set_current_state(x) \
|
||||
atomic_store_rel_int((volatile int *)¤t->state, (x))
|
||||
#define __set_current_state(x) current->state = (x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue