Searched refs:tsk (Results 1 – 11 of 11) sorted by relevance
/fs/ |
D | exec.c | 981 struct task_struct *tsk; in exec_mmap() local 986 tsk = current; in exec_mmap() 988 exec_mm_release(tsk, old_mm); in exec_mmap() 992 ret = down_write_killable(&tsk->signal->exec_update_lock); in exec_mmap() 1006 up_write(&tsk->signal->exec_update_lock); in exec_mmap() 1011 task_lock(tsk); in exec_mmap() 1015 active_mm = tsk->active_mm; in exec_mmap() 1016 tsk->active_mm = mm; in exec_mmap() 1017 tsk->mm = mm; in exec_mmap() 1030 tsk->mm->vmacache_seqnum = 0; in exec_mmap() [all …]
|
D | coredump.c | 373 static int zap_threads(struct task_struct *tsk, struct mm_struct *mm, in zap_threads() argument 380 spin_lock_irq(&tsk->sighand->siglock); in zap_threads() 381 if (!signal_group_exit(tsk->signal)) { in zap_threads() 383 tsk->signal->group_exit_task = tsk; in zap_threads() 384 nr = zap_process(tsk, exit_code, 0); in zap_threads() 385 clear_tsk_thread_flag(tsk, TIF_SIGPENDING); in zap_threads() 387 spin_unlock_irq(&tsk->sighand->siglock); in zap_threads() 391 tsk->flags |= PF_DUMPCORE; in zap_threads() 426 if (g == tsk->group_leader) in zap_threads() 451 struct task_struct *tsk = current; in coredump_wait() local [all …]
|
D | fs_struct.c | 95 void exit_fs(struct task_struct *tsk) in exit_fs() argument 97 struct fs_struct *fs = tsk->fs; in exit_fs() 101 task_lock(tsk); in exit_fs() 103 tsk->fs = NULL; in exit_fs() 106 task_unlock(tsk); in exit_fs()
|
D | file.c | 471 struct task_struct *tsk = current; in reset_files_struct() local 474 old = tsk->files; in reset_files_struct() 475 task_lock(tsk); in reset_files_struct() 476 tsk->files = files; in reset_files_struct() 477 task_unlock(tsk); in reset_files_struct() 481 void exit_files(struct task_struct *tsk) in exit_files() argument 483 struct files_struct * files = tsk->files; in exit_files() 486 task_lock(tsk); in exit_files() 487 tsk->files = NULL; in exit_files() 488 task_unlock(tsk); in exit_files()
|
/fs/jffs2/ |
D | background.c | 37 struct task_struct *tsk; in jffs2_start_garbage_collect_thread() local 45 tsk = kthread_run(jffs2_garbage_collect_thread, c, "jffs2_gcd_mtd%d", c->mtd->index); in jffs2_start_garbage_collect_thread() 46 if (IS_ERR(tsk)) { in jffs2_start_garbage_collect_thread() 48 -PTR_ERR(tsk)); in jffs2_start_garbage_collect_thread() 50 ret = PTR_ERR(tsk); in jffs2_start_garbage_collect_thread() 53 jffs2_dbg(1, "Garbage collect thread is pid %d\n", tsk->pid); in jffs2_start_garbage_collect_thread() 55 ret = tsk->pid; in jffs2_start_garbage_collect_thread()
|
/fs/btrfs/ |
D | inode-map.c | 143 struct task_struct *tsk; in start_caching() local 183 tsk = kthread_run(caching_kthread, root, "btrfs-ino-cache-%llu", in start_caching() 185 if (IS_ERR(tsk)) in start_caching()
|
D | volumes.c | 4300 struct task_struct *tsk; in btrfs_resume_balance_async() local 4323 tsk = kthread_run(balance_kthread, fs_info, "btrfs-balance"); in btrfs_resume_balance_async() 4324 return PTR_ERR_OR_ZERO(tsk); in btrfs_resume_balance_async()
|
/fs/proc/ |
D | array.c | 145 static inline const char *get_task_state(struct task_struct *tsk) in get_task_state() argument 148 return task_state_array[task_state_index(tsk)]; in get_task_state()
|
D | base.c | 343 static ssize_t get_task_cmdline(struct task_struct *tsk, char __user *buf, in get_task_cmdline() argument 349 mm = get_task_mm(tsk); in get_task_cmdline() 361 struct task_struct *tsk; in proc_pid_cmdline_read() local 366 tsk = get_proc_task(file_inode(file)); in proc_pid_cmdline_read() 367 if (!tsk) in proc_pid_cmdline_read() 369 ret = get_task_cmdline(tsk, buf, count, pos); in proc_pid_cmdline_read() 370 put_task_struct(tsk); in proc_pid_cmdline_read()
|
/fs/cifs/ |
D | connect.c | 1231 task_to_wake = xchg(&server->tsk, NULL); in cifs_demultiplex_thread() 2524 task = xchg(&server->tsk, NULL); in cifs_put_tcp_session() 2634 tcp_ses->tsk = kthread_run(cifs_demultiplex_thread, in cifs_get_tcp_session() 2636 if (IS_ERR(tcp_ses->tsk)) { in cifs_get_tcp_session() 2637 rc = PTR_ERR(tcp_ses->tsk); in cifs_get_tcp_session()
|
D | cifsglob.h | 699 struct task_struct *tsk; member
|