I\'m studying about Linux kernel and I have a problem.
I see many Linux kernel source files have current->files. So what is the current?
current->files
current
Current is a global variable of type struct task_struct. You can find it's definition at [1].
Current
struct task_struct
Files is a struct files_struct and it contains information of the files used by the current process.
Files
struct files_struct
[1] http://students.mimuw.edu.pl/SO/LabLinux/PROCESY/ZRODLA/sched.h.html