No edit summary
No edit summary
Line 1: Line 1:
v2
v2
3sg
3sgc
<display_struct>task_struct</display_struct>
<display_struct>task_struct</display_struct>

Revision as of 01:30, 19 August 2025

v2 3sgc

Struct: task_struct

File: include/linux/sched.h (Line 629)

Version: v5.6.1

Members:

TypeNameDescription
− #ifdef CONFIG_THREAD_INFO_IN_TASK
struct thread_infothread_info
#endif
volatile longstatethis is a custom description
void*stack
refcount_tusage
unsigned intflagsThis is an int
unsigned intptraceThis is an int
− #ifdef CONFIG_SMP
struct llist_nodewake_entry
inton_cpuThis is an int
− #ifdef CONFIG_THREAD_INFO_IN_TASK
unsigned intcpuThis is an int
#endif
unsigned intwakee_flipsThis is an int
unsigned longwakee_flip_decay_ts
struct task_struct*last_wakee
intrecent_used_cpuThis is an int
intwake_cpuThis is an int
#endif
inton_rqThis is an int
intprioThis is an int
intstatic_prioThis is an int
intnormal_prioThis is an int
unsigned intrt_priorityThis is an int
const struct sched_class*sched_class
struct sched_entityse
struct sched_rt_entityrt
− #ifdef CONFIG_CGROUP_SCHED
struct task_group*sched_task_group
#endif
struct sched_dl_entitydl
− #ifdef CONFIG_UCLAMP_TASK
struct uclamp_seuclamp_req[UCLAMP_CNT]
struct uclamp_seuclamp[UCLAMP_CNT]
#endif
− #ifdef CONFIG_PREEMPT_NOTIFIERS
struct hlist_headpreempt_notifiers
#endif
− #ifdef CONFIG_BLK_DEV_IO_TRACE
unsigned intbtrace_seqThis is an int
#endif
unsigned intpolicyThis is an int
intnr_cpus_allowedThis is an int
const cpumask_t*cpus_ptr
cpumask_tcpus_mask
− #ifdef CONFIG_PREEMPT_RCU
intrcu_read_lock_nestingThis is an int
union rcu_specialrcu_read_unlock_special
struct list_headrcu_node_entrypls complete summary
struct rcu_node*rcu_blocked_node
#endif /* #ifdef CONFIG_PREEMPT_RCU */
− #ifdef CONFIG_TASKS_RCU
unsigned longrcu_tasks_nvcsw
u8rcu_tasks_holdout
Type:Test/v2
Source C
Parameter 2 1
u8rcu_tasks_idx
Type:Test/v2
Source C
Parameter 2 1
intrcu_tasks_idle_cpuThis is an int
struct list_headrcu_tasks_holdout_listpls complete summary
#endif /* #ifdef CONFIG_TASKS_RCU */
struct sched_infosched_info
struct list_headtaskspls complete summary
− #ifdef CONFIG_SMP
struct plist_nodepushable_tasks
struct rb_nodepushable_dl_tasks
#endif
struct mm_struct*mm
struct mm_struct*active_mm
struct vmacachevmacache
− #ifdef SPLIT_RSS_COUNTING
struct task_rss_statrss_stat
#endif
intexit_stateThis is an int
intexit_codeThis is an int
intexit_signalThis is an int
intpdeath_signalThis is an int
unsigned longjobctl
unsigned intpersonalityThis is an int
unsignedsched_reset_on_fork:1
unsignedsched_contributes_to_load:1
unsignedsched_migrated:1
unsignedsched_remote_wakeup:1
− #ifdef CONFIG_PSI
unsignedsched_psi_wake_requeue:1
#endif
unsigned:0
unsignedin_execve:1
unsignedin_iowait:1
− #ifndef TIF_RESTORE_SIGMASK
unsignedrestore_sigmask:1
#endif
− #ifdef CONFIG_MEMCG
unsignedin_user_fault:1
#endif
− #ifdef CONFIG_COMPAT_BRK
unsignedbrk_randomized:1
#endif
− #ifdef CONFIG_CGROUPS
unsignedno_cgroup_migration:1
unsignedfrozen:1
#endif
− #ifdef CONFIG_BLK_CGROUP
unsigneduse_memdelay:1
#endif
struct restart_blockrestart_block
pid_tpid
pid_ttgid
− #ifdef CONFIG_STACKPROTECTOR
unsigned longstack_canary
#endif
struct task_struct __rcu*real_parent
struct task_struct __rcu*parent
struct list_headchildrenpls complete summary
struct list_headsiblingpls complete summary
struct task_struct*group_leader
struct list_headptracedpls complete summary
struct list_headptrace_entrypls complete summary
struct pid*thread_pid
struct hlist_nodepid_links[PIDTYPE_MAX]
struct list_headthread_grouppls complete summary
struct list_headthread_nodepls complete summary
struct completion*vfork_done
int __user*set_child_tid
int __user*clear_child_tid
u64utime
u64stime
− #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
u64utimescaled
u64stimescaled
#endif
u64gtime
struct prev_cputimeprev_cputime
− #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
struct vtimevtime
#endif
− #ifdef CONFIG_NO_HZ_FULL
atomic_ttick_dep_mask
#endif
unsigned longnvcsw
unsigned longnivcsw
u64start_time
u64start_boottime
unsigned longmin_flt
unsigned longmaj_flt
struct posix_cputimersposix_cputimers
const struct cred __rcu*ptracer_cred
const struct cred __rcu*real_cred
const struct cred __rcu*cred
− #ifdef CONFIG_KEYS
struct key*cached_requested_key
#endif
charcomm[TASK_COMM_LEN]
struct nameidata*nameidata
− #ifdef CONFIG_SYSVIPC
struct sysv_semsysvsem
struct sysv_shmsysvshm
#endif
− #ifdef CONFIG_DETECT_HUNG_TASK
unsigned longlast_switch_count
unsigned longlast_switch_time
#endif
struct fs_struct*fs
struct files_struct*files
struct nsproxy*nsproxy
struct signal_struct*signal
struct sighand_struct __rcu*sighand
sigset_tblocked
sigset_treal_blocked
sigset_tsaved_sigmask
struct sigpendingpending
unsigned longsas_ss_sp
size_tsas_ss_size
unsigned intsas_ss_flagsThis is an int
struct callback_head*task_works
− #ifdef CONFIG_AUDIT
− #ifdef CONFIG_AUDITSYSCALL
struct audit_context*audit_context
#endif
kuid_tloginuid
unsigned intsessionidThis is an int
#endif
struct seccompseccomp
u32parent_exec_id
u32self_exec_id
spinlock_talloc_lock
raw_spinlock_tpi_lock
struct wake_q_nodewake_q
− #ifdef CONFIG_RT_MUTEXES
struct rb_root_cachedpi_waiters
struct task_struct*pi_top_task
struct rt_mutex_waiter*pi_blocked_on
#endif
− #ifdef CONFIG_DEBUG_MUTEXES
struct mutex_waiter*blocked_on
#endif
− #ifdef CONFIG_DEBUG_ATOMIC_SLEEP
intnon_block_countThis is an int
#endif
− #ifdef CONFIG_TRACE_IRQFLAGS
unsigned intirq_eventsThis is an int
unsigned longhardirq_enable_ip
unsigned longhardirq_disable_ip
unsigned inthardirq_enable_eventThis is an int
unsigned inthardirq_disable_eventThis is an int
inthardirqs_enabledThis is an int
inthardirq_contextThis is an int
unsigned longsoftirq_disable_ip
unsigned longsoftirq_enable_ip
unsigned intsoftirq_disable_eventThis is an int
unsigned intsoftirq_enable_eventThis is an int
intsoftirqs_enabledThis is an int
intsoftirq_contextThis is an int
#endif
− #ifdef CONFIG_LOCKDEP
u64curr_chain_key
intlockdep_depthThis is an int
unsigned intlockdep_recursionThis is an int
struct held_lockheld_locks[MAX_LOCK_DEPTH]
#endif
− #ifdef CONFIG_UBSAN
unsigned intin_ubsanThis is an int
#endif
void*journal_info
struct bio_list*bio_list
− #ifdef CONFIG_BLOCK
struct blk_plug*plug
#endif
struct reclaim_state*reclaim_state
struct backing_dev_info*backing_dev_info
struct io_context*io_context
− #ifdef CONFIG_COMPACTION
struct capture_control*capture_control
#endif
unsigned longptrace_message
kernel_siginfo_t*last_siginfo
struct task_io_accountingioac
− #ifdef CONFIG_PSI
unsigned intpsi_flagsThis is an int
#endif
− #ifdef CONFIG_TASK_XACCT
u64acct_rss_mem1
u64acct_vm_mem1
u64acct_timexpd
#endif
− #ifdef CONFIG_CPUSETS
nodemask_tmems_allowed
seqcount_tmems_allowed_seq
intcpuset_mem_spread_rotorThis is an int
intcpuset_slab_spread_rotorThis is an int
#endif
− #ifdef CONFIG_CGROUPS
struct css_set __rcu*cgroups
struct list_headcg_listpls complete summary
#endif
− #ifdef CONFIG_X86_CPU_RESCTRL
u32closid
u32rmid
#endif
− #ifdef CONFIG_FUTEX
struct robust_list_head __user*robust_list
− #ifdef CONFIG_COMPAT
struct compat_robust_list_head __user*compat_robust_list
#endif
struct list_headpi_state_listpls complete summary
struct futex_pi_state*pi_state_cache
struct mutexfutex_exit_mutex
unsigned intfutex_stateThis is an int
#endif
− #ifdef CONFIG_PERF_EVENTS
struct perf_event_context*perf_event_ctxp[perf_nr_task_contexts]
struct mutexperf_event_mutex
struct list_headperf_event_listpls complete summary
#endif
− #ifdef CONFIG_DEBUG_PREEMPT
unsigned longpreempt_disable_ip
#endif
− #ifdef CONFIG_NUMA
struct mempolicy*mempolicy
shortil_prev
shortpref_node_fork
#endif
− #ifdef CONFIG_NUMA_BALANCING
intnuma_scan_seqThis is an int
unsigned intnuma_scan_periodThis is an int
unsigned intnuma_scan_period_maxThis is an int
intnuma_preferred_nidThis is an int
unsigned longnuma_migrate_retry
u64node_stamp
u64last_task_numa_placement
u64last_sum_exec_runtime
struct callback_headnuma_work
struct numa_group __rcu*numa_group
unsigned long*numa_faults
unsigned longtotal_numa_faults
unsigned longnuma_faults_locality[3]
unsigned longnuma_pages_migrated
#endif /* CONFIG_NUMA_BALANCING */
− #ifdef CONFIG_RSEQ
struct rseq __user*rseq
u32rseq_sig
unsigned longrseq_event_mask
#endif
struct tlbflush_unmap_batchtlb_ubc
refcount_trcu_users
struct rcu_headrcu
struct pipe_inode_info*splice_pipe
struct page_fragtask_frag
− #ifdef CONFIG_TASK_DELAY_ACCT
struct task_delay_info*delays
#endif
− #ifdef CONFIG_FAULT_INJECTION
intmake_it_failThis is an int
unsigned intfail_nthThis is an int
#endif
intnr_dirtiedThis is an int
intnr_dirtied_pauseThis is an int
unsigned longdirty_paused_when
− #ifdef CONFIG_LATENCYTOP
intlatency_record_countThis is an int
struct latency_recordlatency_record[LT_SAVECOUNT]test
#endif
u64timer_slack_ns
u64default_timer_slack_ns
− #ifdef CONFIG_KASAN
unsigned intkasan_depthThis is an int
#endif
− #ifdef CONFIG_FUNCTION_GRAPH_TRACER
intcurr_ret_stackThis is an int
intcurr_ret_depthThis is an int
struct ftrace_ret_stack*ret_stack
unsigned long longftrace_timestamp
atomic_ttrace_overrun
atomic_ttracing_graph_pause
#endif
− #ifdef CONFIG_TRACING
unsigned longtrace
unsigned longtrace_recursion
#endif /* CONFIG_TRACING */
− #ifdef CONFIG_KCOV
unsigned intkcov_modeThis is an int
unsigned intkcov_sizeThis is an int
void*kcov_area
struct kcov*kcov
u64kcov_handle
intkcov_sequenceThis is an int
#endif
− #ifdef CONFIG_MEMCG
struct mem_cgroup*memcg_in_oom
gfp_tmemcg_oom_gfp_mask
intmemcg_oom_orderThis is an int
unsigned intmemcg_nr_pages_over_highThis is an int
struct mem_cgroup*active_memcg
#endif
− #ifdef CONFIG_BLK_CGROUP
struct request_queue*throttle_queue
#endif
− #ifdef CONFIG_UPROBES
struct uprobe_task*utask
#endif
− #if defined(CONFIG_BCACHE) || defined(CONFIG_BCACHE_MODULE) &&
unsigned intsequential_ioThis is an int
unsigned intsequential_io_avgThis is an int
#endif
− #ifdef CONFIG_DEBUG_ATOMIC_SLEEP
unsigned longtask_state_change
#endif
intpagefault_disabledThis is an int
− #ifdef CONFIG_MMU
struct task_struct*oom_reaper_list
#endif
− #ifdef CONFIG_VMAP_STACK
struct vm_struct*stack_vm_area
#endif
− #ifdef CONFIG_THREAD_INFO_IN_TASK
refcount_tstack_refcount
#endif
− #ifdef CONFIG_LIVEPATCH
intpatch_stateThis is an int
#endif
− #ifdef CONFIG_SECURITY
void*security
#endif
− #ifdef CONFIG_GCC_PLUGIN_STACKLEAK
unsigned longlowest_stack
unsigned longprev_lowest_stack
#endif
struct thread_structthread