문제

The purpose of the current macro is to find a pointer to the task structure of the currently running process.

So regarding its usage when developing a kernel module, and according to its definition does this macro return the PID of the current running user-space process or what?

도움이 되었습니까?

해결책

When a user-space process performs a system call, this macro points to the task_struct associated with this process. It doesn't only contain the PID of the process but a lot of other info.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top