Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 85) sorted by relevance

1234

/fs/
Dfcntl.c87 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, in f_modown() argument
91 if (force || !filp->f_owner.pid) { in f_modown()
92 put_pid(filp->f_owner.pid); in f_modown()
93 filp->f_owner.pid = get_pid(pid); in f_modown()
96 if (pid) { in f_modown()
105 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument
109 f_modown(filp, pid, type, force); in __f_setown()
116 struct pid *pid = NULL; in f_setown() local
131 pid = find_vpid(who); in f_setown()
132 if (!pid) in f_setown()
[all …]
/fs/proc/
Darray.c152 struct pid *pid, struct task_struct *p) in task_state() argument
189 seq_put_decimal_ull(m, "\nPid:\t", pid_nr_ns(pid, ns)); in task_state()
213 for (g = ns->level; g <= pid->level; g++) in task_state()
214 seq_put_decimal_ull(m, "\t", task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state()
216 for (g = ns->level; g <= pid->level; g++) in task_state()
217 seq_put_decimal_ull(m, "\t", task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state()
219 for (g = ns->level; g <= pid->level; g++) in task_state()
220 seq_put_decimal_ull(m, "\t", task_pgrp_nr_ns(p, pid->numbers[g].ns)); in task_state()
222 for (g = ns->level; g <= pid->level; g++) in task_state()
223 seq_put_decimal_ull(m, "\t", task_session_nr_ns(p, pid->numbers[g].ns)); in task_state()
[all …]
Dinternal.h88 struct pid_namespace *ns, struct pid *pid,
94 struct pid *pid; member
123 static inline struct pid *proc_pid(const struct inode *inode) in proc_pid()
125 return PROC_I(inode)->pid; in proc_pid()
153 struct pid *, struct task_struct *);
155 struct pid *, struct task_struct *);
157 struct pid *, struct task_struct *);
159 struct pid *, struct task_struct *);
Dbase.c387 struct pid *pid, struct task_struct *task) in proc_pid_wchan() argument
429 struct pid *pid, struct task_struct *task) in proc_pid_stack() argument
477 struct pid *pid, struct task_struct *task) in proc_pid_schedstat() argument
551 struct pid *pid, struct task_struct *task) in proc_oom_score() argument
597 struct pid *pid, struct task_struct *task) in proc_pid_limits() argument
641 struct pid *pid, struct task_struct *task) in proc_pid_syscall() argument
768 struct pid *pid = proc_pid(inode); in proc_single_show() local
772 task = get_pid_task(pid, PIDTYPE_PID); in proc_single_show()
776 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); in proc_single_show()
1874 struct pid *pid = ei->pid; in proc_pid_evict_inode() local
[all …]
Dthread_self.c17 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_get_link() local
20 if (!pid) in proc_thread_self_get_link()
25 sprintf(name, "%u/task/%u", tgid, pid); in proc_thread_self_get_link()
DKconfig89 /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
94 bool "Include /proc/<pid>/task/<tid>/children file"
/fs/btrfs/
Dlocking.c204 if (eb->lock_recursed && current->pid == eb->lock_owner) in btrfs_set_lock_blocking_read()
228 if (eb->lock_recursed && current->pid == eb->lock_owner) in btrfs_set_lock_blocking_write()
257 current->pid == eb->lock_owner); in __btrfs_tree_read_lock()
259 if (current->pid == eb->lock_owner) { in __btrfs_tree_read_lock()
355 eb->lock_owner = current->pid; in btrfs_try_tree_write_lock()
375 if (eb->lock_recursed && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock()
401 if (eb->lock_recursed && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock_blocking()
427 WARN_ON(eb->lock_owner == current->pid); in __btrfs_tree_lock()
440 eb->lock_owner = current->pid; in __btrfs_tree_lock()
/fs/dlm/
Dplock.c92 op->info.pid = info->pid; in do_unlock_close()
122 op->info.pid = fl->fl_pid; in dlm_posix_lock()
165 (unsigned long long)number, op->info.pid); in dlm_posix_lock()
283 op->info.pid = fl->fl_pid; in dlm_posix_unlock()
343 op->info.pid = fl->fl_pid; in dlm_posix_get()
377 fl->fl_pid = op->info.pid; in dlm_posix_get()
458 iter->info.pid == info.pid && in dev_write()
/fs/lockd/
Dsvclock.c352 static struct nlm_lockowner *__nlmsvc_find_lockowner(struct nlm_host *host, pid_t pid) in __nlmsvc_find_lockowner() argument
356 if (lockowner->pid != pid) in __nlmsvc_find_lockowner()
363 static struct nlm_lockowner *nlmsvc_find_lockowner(struct nlm_host *host, pid_t pid) in nlmsvc_find_lockowner() argument
368 res = __nlmsvc_find_lockowner(host, pid); in nlmsvc_find_lockowner()
374 res = __nlmsvc_find_lockowner(host, pid); in nlmsvc_find_lockowner()
379 new->pid = pid; in nlmsvc_find_lockowner()
399 pid_t pid) in nlmsvc_locks_init_private() argument
401 fl->fl_owner = nlmsvc_find_lockowner(host, pid); in nlmsvc_locks_init_private()
417 call->a_args.lock.svid = ((struct nlm_lockowner *)lock->fl.fl_owner)->pid; in nlmsvc_setgrantargs()
Dclntproc.c67 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) in nlm_pidbusy() argument
71 if (lockowner->pid == pid) in nlm_pidbusy()
112 new->pid = __nlm_alloc_pid(host); in nlmclnt_find_lockowner()
137 (unsigned int)fl->fl_u.nfs_fl.owner->pid, in nlmclnt_setlockargs()
139 lock->svid = fl->fl_u.nfs_fl.owner->pid; in nlmclnt_setlockargs()
/fs/cifs/
Dfile.c319 cfile->pid = current->tgid; in cifs_new_fileinfo()
633 cfile->pid); in cifs_open()
948 lock->pid = current->tgid; in cifs_lock_init()
984 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && in cifs_find_fid_lock_conflict()
993 current->tgid == li->pid) || type == li->type)) in cifs_find_fid_lock_conflict()
1051 flock->fl_pid = conf_lock->pid; in cifs_lock_test()
1224 cur->Pid = cpu_to_le16(li->pid); in cifs_push_mandatory_locks()
1265 __u32 pid; member
1327 lck->pid = hash_lockowner(flock->fl_owner); in cifs_push_posix_locks()
1338 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
[all …]
Dtrace.h491 __u32 pid,
494 TP_ARGS(cmd, mid, pid, when_sent, when_received),
498 __field(__u32, pid)
505 __entry->pid = pid;
510 __entry->cmd, __entry->mid, __entry->pid, __entry->when_sent,
518 __u32 pid, \
521 TP_ARGS(cmd, mid, pid, when_sent, when_received))
Dsmb2proto.h226 u64 persistent_fid, u64 volatile_fid, u32 pid,
231 u64 persistent_fid, u64 volatile_fid, u32 pid,
261 const __u32 pid, const __u64 length, const __u64 offset,
265 const __u32 pid, const __u32 num_lock,
Dlink.c338 io_parms.pid = current->tgid; in cifs_query_mf_symlink()
374 io_parms.pid = current->tgid; in cifs_create_mf_symlink()
433 io_parms.pid = current->tgid; in smb3_query_mf_symlink()
484 io_parms.pid = current->tgid; in smb3_create_mf_symlink()
/fs/autofs/
Dwaitq.c150 packet->pid = wq->pid; in autofs_notify_daemon()
356 pid_t pid; in autofs_wait() local
368 pid = task_pid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); in autofs_wait()
370 if (pid == 0 || tgid == 0) in autofs_wait()
438 wq->pid = pid; in autofs_wait()
Dautofs_i.h40 #define pr_fmt(fmt) KBUILD_MODNAME ":pid:%d:%s: " fmt, current->pid, __func__
94 pid_t pid; member
111 struct pid *oz_pgrp;
/fs/jffs2/
Dbackground.c53 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()
66 jffs2_dbg(1, "Killing GC task %d\n", c->gc_task->pid); in jffs2_stop_garbage_collect_thread()
/fs/gfs2/
Dglock.h139 struct pid *pid; in gfs2_glock_is_locked_by_me() local
143 pid = task_pid(current); in gfs2_glock_is_locked_by_me()
147 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
/fs/ubifs/
Dmisc.c34 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_err()
53 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_warn()
Ddebug.c567 current->pid, lst->empty_lebs, lst->idx_lebs); in ubifs_dump_lstats()
586 current->pid, bi->data_growth + bi->dd_growth, in ubifs_dump_budg()
740 pr_err("(pid %d) start dumping LEB properties\n", current->pid); in ubifs_dump_lprops()
753 pr_err("(pid %d) finish dumping LEB properties\n", current->pid); in ubifs_dump_lprops()
761 pr_err("(pid %d) dumping LPT information\n", current->pid); in ubifs_dump_lpt_info()
800 current->pid, sleb->lnum, offs); in ubifs_dump_sleb()
816 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum); in ubifs_dump_leb()
840 pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum); in ubifs_dump_leb()
892 current->pid, cat, heap->cnt); in ubifs_dump_heap()
900 pr_err("(pid %d) finish dumping heap\n", current->pid); in ubifs_dump_heap()
[all …]
/fs/notify/fanotify/
Dfanotify.h144 struct pid *pid; member
152 event->pid = NULL; in fanotify_init_event()
Dfanotify.c101 old->type != new->type || old->pid != new->pid) in fanotify_should_merge()
612 event->pid = get_pid(task_pid(current)); in fanotify_alloc_event()
614 event->pid = get_pid(task_tgid(current)); in fanotify_alloc_event()
783 put_pid(event->pid); in fanotify_free_event()
/fs/xfs/
Dxfs_pwork.c71 trace_xfs_pwork_init(mp, nr_threads, current->pid); in xfs_pwork_init()
74 current->pid); in xfs_pwork_init()
/fs/orangefs/
Dwaitqueue.c75 op->upcall.pid = current->pid; in service_operation()
85 current->pid); in service_operation()
/fs/ceph/
Dlocks.c105 req->r_args.filelock_change.pid = cpu_to_le64((u64)fl->fl_pid); in ceph_lock_message()
115 fl->fl_pid = -le64_to_cpu(req->r_reply_info.filelock_reply->pid); in ceph_lock_message()
386 cephlock->pid = cpu_to_le64((u64)lock->fl_pid); in lock_to_ceph_filelock()

1234