Home
last modified time | relevance | path

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

1234

/fs/f2fs/
Dtrace.c30 last_io.pid, "----------------", in __print_last_io()
38 static int __file_type(struct inode *inode, pid_t pid) in __file_type() argument
50 else if (pid) in __file_type()
59 pid_t pid = task_pid_nr(current); in f2fs_trace_pid() local
62 set_page_private(page, (unsigned long)pid); in f2fs_trace_pid()
69 p = radix_tree_lookup(&pids, pid); in f2fs_trace_pid()
73 radix_tree_delete(&pids, pid); in f2fs_trace_pid()
75 if (radix_tree_insert(&pids, pid, current)) { in f2fs_trace_pid()
84 pid, current->comm); in f2fs_trace_pid()
93 pid_t pid; in f2fs_trace_ios() local
[all …]
/fs/
Dfcntl.c83 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, in f_modown() argument
87 if (force || !filp->f_owner.pid) { in f_modown()
88 put_pid(filp->f_owner.pid); in f_modown()
89 filp->f_owner.pid = get_pid(pid); in f_modown()
92 if (pid) { in f_modown()
101 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument
105 f_modown(filp, pid, type, force); in __f_setown()
112 struct pid *pid; in f_setown() local
124 pid = find_vpid(who); in f_setown()
125 __f_setown(filp, pid, type, force); in f_setown()
[all …]
/fs/proc/
Darray.c144 struct pid *pid, struct task_struct *p) in task_state() argument
183 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, in task_state()
202 for (g = ns->level; g <= pid->level; g++) in task_state()
204 task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state()
206 for (g = ns->level; g <= pid->level; g++) in task_state()
208 task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state()
210 for (g = ns->level; g <= pid->level; g++) in task_state()
212 task_pgrp_nr_ns(p, pid->numbers[g].ns)); in task_state()
214 for (g = ns->level; g <= pid->level; g++) in task_state()
216 task_session_nr_ns(p, pid->numbers[g].ns)); in task_state()
[all …]
Dinternal.h57 struct pid_namespace *ns, struct pid *pid,
62 struct pid *pid; member
90 static inline struct pid *proc_pid(struct inode *inode) in proc_pid()
92 return PROC_I(inode)->pid; in proc_pid()
151 struct pid *, struct task_struct *);
153 struct pid *, struct task_struct *);
155 struct pid *, struct task_struct *);
157 struct pid *, struct task_struct *);
Dthread_self.c14 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_readlink() local
16 if (!pid) in proc_thread_self_readlink()
18 sprintf(tmp, "%d/task/%d", tgid, pid); in proc_thread_self_readlink()
26 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_follow_link() local
29 if (!pid) in proc_thread_self_follow_link()
34 sprintf(name, "%d/task/%d", tgid, pid); in proc_thread_self_follow_link()
Dbase.c407 struct pid *pid, struct task_struct *task) in proc_pid_auxv() argument
429 struct pid *pid, struct task_struct *task) in proc_pid_wchan() argument
468 struct pid *pid, struct task_struct *task) in proc_pid_stack() argument
519 struct pid *pid, struct task_struct *task) in proc_pid_schedstat() argument
594 struct pid *pid, struct task_struct *task) in proc_oom_score() argument
635 struct pid *pid, struct task_struct *task) in proc_pid_limits() argument
677 struct pid *pid, struct task_struct *task) in proc_pid_syscall() argument
745 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions() argument
749 if (pid->hide_pid < hide_pid_min) in has_pid_permissions()
751 if (in_group_p(pid->pid_gid)) in has_pid_permissions()
[all …]
Droot.c51 static int proc_parse_options(char *options, struct pid_namespace *pid) in proc_parse_options() argument
71 pid->pid_gid = make_kgid(current_user_ns(), option); in proc_parse_options()
80 pid->hide_pid = option; in proc_parse_options()
94 struct pid_namespace *pid = sb->s_fs_info; in proc_remount() local
97 return !proc_parse_options(data, pid); in proc_remount()
Dinode.c40 put_pid(PROC_I(inode)->pid); in proc_evict_inode()
63 ei->pid = NULL; in proc_alloc_inode()
105 struct pid_namespace *pid = sb->s_fs_info; in proc_show_options() local
107 if (!gid_eq(pid->pid_gid, GLOBAL_ROOT_GID)) in proc_show_options()
108 seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, pid->pid_gid)); in proc_show_options()
109 if (pid->hide_pid != 0) in proc_show_options()
110 seq_printf(seq, ",hidepid=%u", pid->hide_pid); in proc_show_options()
DKconfig71 /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
76 bool "Include /proc/<pid>/task/<tid>/children file"
/fs/btrfs/
Dlocking.c42 if (eb->lock_nested && current->pid == eb->lock_owner) in btrfs_set_lock_blocking_rw()
74 if (eb->lock_nested && current->pid == eb->lock_owner) in btrfs_clear_lock_blocking_rw()
110 current->pid == eb->lock_owner); in btrfs_tree_read_lock()
114 current->pid == eb->lock_owner) { in btrfs_tree_read_lock()
195 eb->lock_owner = current->pid; in btrfs_try_tree_write_lock()
210 if (eb->lock_nested && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock()
232 if (eb->lock_nested && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock_blocking()
253 WARN_ON(eb->lock_owner == current->pid); in btrfs_tree_lock()
273 eb->lock_owner = current->pid; in btrfs_tree_lock()
/fs/autofs4/
Dautofs_i.h45 current->pid, __func__, ##__VA_ARGS__)
49 current->pid, __func__, ##__VA_ARGS__)
53 current->pid, __func__, ##__VA_ARGS__)
103 pid_t pid; member
116 struct pid *oz_pgrp;
Dwaitq.c163 packet->pid = wq->pid; in autofs4_notify_daemon()
362 pid_t pid; in autofs4_wait() local
374 pid = task_pid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); in autofs4_wait()
376 if (pid == 0 || tgid == 0) in autofs4_wait()
444 wq->pid = pid; in autofs4_wait()
/fs/cifs/
Dfile.c318 cfile->pid = current->tgid; in cifs_new_fileinfo()
583 cfile->pid); in cifs_open()
853 lock->pid = current->tgid; in cifs_lock_init()
887 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && in cifs_find_fid_lock_conflict()
896 current->tgid == li->pid) || type == li->type)) in cifs_find_fid_lock_conflict()
948 flock->fl_pid = conf_lock->pid; in cifs_lock_test()
1124 cur->Pid = cpu_to_le16(li->pid); in cifs_push_mandatory_locks()
1159 __u32 pid; member
1221 lck->pid = flock->fl_pid; in cifs_push_posix_locks()
1232 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
[all …]
Dsmb2proto.h154 u64 persistent_fid, u64 volatile_fid, u32 pid,
174 const __u32 pid, const __u64 length, const __u64 offset,
178 const __u32 pid, const __u32 num_lock,
Dcifsglob.h989 __u32 pid; member
1049 __u32 pid; /* process id who opened file */ member
1071 __u32 pid; member
1089 pid_t pid; member
1114 pid_t pid; member
1288 __u32 pid; /* process id */ member
Dlink.c357 io_parms.pid = current->tgid; in cifs_query_mf_symlink()
397 io_parms.pid = current->tgid; in cifs_create_mf_symlink()
458 io_parms.pid = current->tgid; in smb3_query_mf_symlink()
511 io_parms.pid = current->tgid; in smb3_create_mf_symlink()
/fs/gfs2/
Dglock.h141 struct pid *pid; in gfs2_glock_is_locked_by_me() local
145 pid = task_pid(current); in gfs2_glock_is_locked_by_me()
149 if (gh->gh_owner_pid == pid) in gfs2_glock_is_locked_by_me()
/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/exofs/
Dsys.c157 uint64_t pid = sbi->one_comp.obj.partition; in exofs_sysfs_sb_add() local
163 &exofs_kset->kobj, "%s_%llx", dt_dev->osdname, pid); in exofs_sysfs_sb_add()
166 "uuid-%s_%llx => %d\n", dt_dev->osdname, pid, retval); in exofs_sysfs_sb_add()
Dsuper.c56 uint64_t pid; member
114 opts->pid = simple_strtoull(str, NULL, 0); in parse_options()
115 if (opts->pid < EXOFS_MIN_PID) { in parse_options()
416 struct osd_dev *od, u64 pid) in _exofs_print_device() argument
421 msg, dev_path ?: "", odi->osdname, _LLU(pid)); in _exofs_print_device()
746 sbi->one_comp.obj.partition = opts->pid; in exofs_fill_super()
/fs/xfs/
Dkmem.c41 current->comm, current->pid, in kmem_alloc()
107 current->comm, current->pid, in kmem_zone_alloc()
/fs/dlm/
Dplock.c90 op->info.pid = fl->fl_pid; in do_unlock_close()
124 op->info.pid = fl->fl_pid; in dlm_posix_lock()
276 op->info.pid = fl->fl_pid; in dlm_posix_unlock()
336 op->info.pid = fl->fl_pid; in dlm_posix_get()
370 fl->fl_pid = op->info.pid; in dlm_posix_get()
/fs/ubifs/
Ddebug.h154 __func__, __LINE__, current->pid); \
168 pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
174 pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \
/fs/lockd/
Dclntproc.c65 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) in nlm_pidbusy() argument
69 if (lockowner->pid == pid) in nlm_pidbusy()
110 new->pid = __nlm_alloc_pid(host); in nlm_find_lockowner()
135 (unsigned int)fl->fl_u.nfs_fl.owner->pid, in nlmclnt_setlockargs()
137 lock->svid = fl->fl_u.nfs_fl.owner->pid; in nlmclnt_setlockargs()
/fs/ceph/
Dlocks.c71 req->r_args.filelock_change.pid = cpu_to_le64((u64)fl->fl_pid); in ceph_lock_message()
82 fl->fl_pid = le64_to_cpu(req->r_reply_info.filelock_reply->pid); in ceph_lock_message()
362 cephlock->pid = cpu_to_le64((u64)lock->fl_pid); in lock_to_ceph_filelock()

1234