Implement task_euid() and get_task_state() function macros in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
This commit is contained in:
parent
c7486758eb
commit
5746b1cd46
@ -95,7 +95,9 @@ struct task_struct {
|
||||
#define get_pid(x) (x)
|
||||
#define put_pid(x) do { } while (0)
|
||||
#define current_euid() (curthread->td_ucred->cr_uid)
|
||||
#define task_euid(task) ((task)->task_thread->td_ucred->cr_uid)
|
||||
|
||||
#define get_task_state(task) atomic_read(&(task)->state)
|
||||
#define set_task_state(task, x) atomic_set(&(task)->state, (x))
|
||||
#define __set_task_state(task, x) ((task)->state.counter = (x))
|
||||
#define set_current_state(x) set_task_state(current, x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user