if (task) {
int pid = (inode->i_ino >> 16) & 0xFFFF;
- if (!proc_pid_visible(task, pid))
+ if (!vx_proc_pid_visible(task, pid))
goto out_drop;
ret = 1;
extern int proc_pid_vx_info(struct task_struct *, char *);
extern int proc_pid_nx_info(struct task_struct *, char *);
+extern int proc_pid_vx_info(struct task_struct *, char *);
+extern int proc_pid_nx_info(struct task_struct *, char *);
+
/* SMP-safe */
static struct dentry *proc_pident_lookup(struct inode *dir,
struct dentry *dentry,
goto out;
rcu_read_lock();
- task = find_proc_task_by_pid(tgid);
+ task = vx_find_proc_task_by_pid(tgid);
if (task)
get_task_struct(task);
rcu_read_unlock();
goto out;
rcu_read_lock();
- task = find_proc_task_by_pid(tid);
+ task = vx_find_proc_task_by_pid(tid);
if (task)
get_task_struct(task);
rcu_read_unlock();
struct task_struct *pos;
rcu_read_lock();
if (tgid && nr) {
- pos = find_proc_task_by_pid(tgid);
+ pos = vx_find_proc_task_by_pid(tgid);
if (pos && thread_group_leader(pos))
goto found;
}
int len;
ino_t ino;
tgid = vx_map_tgid(task->pid);
- if (!proc_pid_visible(task, tgid))
+ if (!vx_proc_pid_visible(task, tgid))
continue;
len = snprintf(buf, sizeof(buf), "%d", tgid);
rcu_read_lock();
/* Attempt to start with the pid of a thread */
if (tid && (nr > 0)) {
- pos = find_proc_task_by_pid(tid);
+ pos = vx_find_proc_task_by_pid(tid);
if (pos && (pos->group_leader == leader))
goto found;
}
task = next_tid(task), pos++) {
int len;
tid = vx_map_pid(task->pid);
- if (!proc_pid_visible(task, tid))
+ if (!vx_proc_pid_visible(task, tid))
continue;
len = snprintf(buf, sizeof(buf), "%d", tid);