#include <linux/kernel.h> #include <linux/init.h> #include <linux/module.h> #include <linux/sched.h> #include <linux/types.h> #include<linux/pid.h> int my_pid = 5; module_param(my_pid,int,0644); static int __init my_test_init(void) { struct pid* pid = find_get_pid(my_p...
/* VM state: */structreclaim_state*reclaim_state; structio_context*io_context;/* Ptrace state: */unsignedlongptrace_message;kernel_siginfo_t*last_siginfo; structtask_io_accountingioac;structtlbflush_unmap_batchtlb_ubc; /* Cache last used pipe for splice: */structpipe_inode_info*splice_pipe...
kernel_siginfo_t *last_siginfo; struct task_io_accounting ioac; #ifdef CONFIG_PSI /* Pressure stall state */ unsigned int psi_flags; #endif #ifdef CONFIG_TASK_XACCT /* Accumulated RSS usage: */ u64 acct_rss_mem1; /* Accumulated virtual memory usage: */ u64 acct_vm_mem1; /* stim...
kernel_siginfo_t *last_siginfo;struct task_io_accounting ioac; #ifdef CONFIG_PSI /* Pressure stall state */ unsigned int psi_flags; #endif #ifdef CONFIG_TASK_XACCT /* Accumulated RSS usage: */ u64 acct_rss_mem1; /* Accumulated virtual memory usage: */ u64 acct_vm_mem1; /* stime...
struct backing_dev_info*backing_dev_info;struct io_context*io_context;#ifdefCONFIG_COMPACTIONstruct capture_control*capture_control;#endif/* Ptrace state: */unsigned long ptrace_message;kernel_siginfo_t*last_siginfo;struct task_io_accounting ioac;#ifdefCONFIG_PSI/* Pressure stall state */unsigned...
kernel_siginfo_t *last_siginfo; struct task_io_accounting ioac; #ifdef CONFIG_PSI /* Pressure stall state */ unsigned int psi_flags; #endif #ifdef CONFIG_TASK_XACCT /* Accumulated RSS usage: */ u64 acct_rss_mem1; /* Accumulated virtual memory usage: */...
void *stack;进程内核栈 atomic_t usage; unsigned int flags; /* per process flags, defined below */ unsigned int ptrace; #ifdef CONFIG_SMP struct llist_node wake_entry; int on_cpu; #ifdef CONFIG_THREAD_INFO_IN_TASK unsigned int cpu; /* current CPU */ ...
siginfo_t *last_siginfo; /* For ptrace use. */ /* * current io wait handle: wait queue entry to use for io waits * If this thread is processing aio, this points at the waitqueue * inside the currently handled kiocb. It may be NULL (i.e. default ...
Linux Kernel 2.6.25 引入了一种新的进程睡眠状态 它定义如下: #define TASK_WAKEKILL 128 /** wake on signals that are deadly **/ /* Convenience macros for the sake of set_task_state */ #define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE) ...
#if defined(__KERNEL__) && !defined(__ASSEMBLY__) struct pt_regs; int restore_sigcontext(struct pt_regs *, struct sigcontext __user *, long *); int setup_sigcontext(struct sigcontext __user *, struct pt_regs *); void do_signal(struct pt_regs *regs);27...