O'Reilly logo
  • Said İmamoğlu thinks this is interesting:

The current macro often appears in kernel code as a prefix to fields of the process descriptor. For example, current->pid returns the process ID of the process currently running on the CPU.


Cover of Understanding the Linux Kernel, 3rd Edition


How linux use current macro in multi cpu architectures?