Skip to Content
Mastering Linux Kernel Development
book

Mastering Linux Kernel Development

by CH Raghav Maruthi
October 2017
Intermediate to advanced
354 pages
9h 28m
English
Packt Publishing
Content preview from Mastering Linux Kernel Development

flags

The flags field records various attributes corresponding to a process. Each bit in the field corresponds to various stages in the lifetime of a process. Per-process flags are defined in <linux/sched.h>:

#define PF_EXITING           /* getting shut down */#define PF_EXITPIDONE        /* pi exit done on shut down */#define PF_VCPU              /* I'm a virtual CPU */#define PF_WQ_WORKER         /* I'm a workqueue worker */#define PF_FORKNOEXEC        /* forked but didn't exec */#define PF_MCE_PROCESS       /* process policy on mce errors */#define PF_SUPERPRIV         /* used super-user privileges */#define PF_DUMPCORE          /* dumped core */#define PF_SIGNALED          /* killed by a signal */#define PF_MEMALLOC          /* Allocating memory */#define PF_NPROC_EXCEEDED /* set_user noticed that RLIMIT_NPROC was exceeded ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Kernel Development, Third Edition

Linux Kernel Development, Third Edition

Robert Love
Understanding the Linux Kernel

Understanding the Linux Kernel

Daniel P. Bovet, Marco Cesati
Linux Kernel Debugging

Linux Kernel Debugging

Kaiwan N. Billimoria

Publisher Resources

ISBN: 9781785883057Other