Function Report

Linux Kernel (v4.4)

Source File:include\linux\sched.h Create Date:2016-01-14 09:13:29
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:put_task_struct

Function:static inline void put_task_struct(struct task_struct *t)

Return Type:static inline void

Parameter:

Type Parameter NameRemarks
struct task_struct * t

Function description:

2028  If decrement and test then __put_task_struct(information of task)
Caller
Function NameFunction description
wait_for_vfork_done
delayed_put_task_struct
mm_update_next_ownerA task is exiting. If it owned this mm, find a new owner for the mm.
wait_noreap_copyout
wait_task_stopped Wait for%TASK_STOPPED or%TASK_TRACED
wait_task_continuedHandle do_wait work for one task in a live, non-stopped state.
SYSC_ptrace
C_SYSC_ptrace
SYSC_prlimit64
kthread_stopstop a thread
smpboot_destroy_threads
wake_up_q
finish_task_switch clean up after a task-switch
sched_setaffinity
push_rt_taskIf the current CPU has more than one RT task, see if the non running task can migrate over to a CPU that is running a task of lesser priority.
dl_task_timerThis is the bandwidth enforcement timer callback. If here, we know a task is not on its dl_rq, since the fact that the timer was running means the task is throttled and needs a runtime replenishment.
push_dl_taskSee if the non running-deadline tasks on this rq can be sent to some other CPU where they can preempt and start executing.
rt_mutex_adjust_prio_chainAdjust the priority chain. Also used for deadlock detection. Decreases task's usage by one- may thus free the task.
__rwsem_do_wakehandle the lock release when processes blocked on it that can now run
__rwsem_do_wakehandle the lock release when processes blocked on it that can now run
__setup_irqregister an interrupt
__free_irqInternal function to unregister an irqaction- used to free regular and special interrupts that are part of the architecture.
check_holdout_taskSee if tasks are still holding out, complain if so.
SYSC_kcmp
posix_cpu_timer_delClean up a CPU-clock timer that is about to be destroyed.
attach_to_pi_ownerLookup the task for the TID provided from user space and attach to it after doing proper sanity checks.
__cgroup_procs_writeFind the task_struct of the task to attach by vpid and pass it along to the function to attach either it or all tasks in its threadgroup. Will lock cgroup_mutex and threadgroup.
css_task_iter_next return the next task for the iterator
css_task_iter_end finish task iteration
cgroup_transfer_taskscgroup_trasnsfer_tasks- move tasks from one cgroup to another
rcu_lock_breakTo avoid extending the RCU grace period for an unbounded amount of time, periodically exit the critical section and enter a new one.
fill_stats_for_pid
__wakeup_reset
put_ctx
find_lively_task_by_vpid
perf_remove_from_ownerRemove user event from the owner task.
SYSC_perf_event_open
oom_kill_processMust be called while holding a reference to p, which will be released upon returning.
process_vm_rw_core core of reading/writing pages from task specified
SYSC_migrate_pages
SYSC_move_pages
mem_cgroup_out_of_memory
kill_procsKill the processes that have been collected earlier.
yama_task_prctl check for Yama-specific prctl operations
mounts_open_common
m_stop
m_stop
clear_refs_write
proc_cwd_link
proc_root_link
proc_pid_cmdline_read
lstats_show_proc
lstats_write
proc_fd_access_allowed permission checks
proc_pid_permission
proc_single_show
proc_mem_open
oom_adj_read
oom_adj_write/proc/pid/oom_adj exists solely for backwards compatibility with previous kernels
oom_score_adj_read
oom_score_adj_write
proc_loginuid_read
proc_sessionid_read
proc_fault_inject_read
proc_fault_inject_write
sched_showPrint out various scheduling related per-task fields:
sched_write
sched_autogroup_showPrint out autogroup related information:
sched_autogroup_write
comm_write
comm_show
proc_exe_link
pid_revalidateExceptional case: normally we are not allowed to unhash a busy directory. In this case, however, we can do it- no aliasing problems due to the way we treat inodes.
map_files_d_revalidate
proc_map_files_get_link
proc_map_files_lookup
proc_map_files_readdir
timers_stop
proc_pident_lookup
proc_pident_readdir
proc_pid_attr_read
proc_pid_attr_write
proc_id_map_open
proc_setgroups_open
proc_pid_lookup
next_tgid
proc_pid_readdirfor the/proc/ directory itself, after non-process stuff has been done
proc_task_lookup
next_tidFind the next thread in the thread list. Return NULL if there is an error or no next thread.
proc_task_readdirfor the/proc/TGID/task/ directories
proc_task_getattr
seq_show
tid_fd_revalidate
proc_fd_link
proc_lookupfd_common
proc_readfd_common
proc_ns_follow_link
proc_ns_readlink
proc_ns_dir_readdir
proc_ns_dir_lookup