Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3174c21b
Commit
3174c21b
authored
Apr 07, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move junk from proc_fs.h to fs/proc/internal.h
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1c755af4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
24 deletions
+26
-24
fs/proc/internal.h
fs/proc/internal.h
+25
-0
fs/proc/proc_devtree.c
fs/proc/proc_devtree.c
+1
-0
include/linux/proc_fs.h
include/linux/proc_fs.h
+0
-24
No files found.
fs/proc/internal.h
View file @
3174c21b
...
...
@@ -92,3 +92,28 @@ struct pde_opener {
struct
list_head
lh
;
};
void
pde_users_dec
(
struct
proc_dir_entry
*
pde
);
extern
spinlock_t
proc_subdir_lock
;
struct
dentry
*
proc_pid_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
struct
nameidata
*
);
int
proc_pid_readdir
(
struct
file
*
filp
,
void
*
dirent
,
filldir_t
filldir
);
unsigned
long
task_vsize
(
struct
mm_struct
*
);
int
task_statm
(
struct
mm_struct
*
,
int
*
,
int
*
,
int
*
,
int
*
);
void
task_mem
(
struct
seq_file
*
,
struct
mm_struct
*
);
struct
proc_dir_entry
*
de_get
(
struct
proc_dir_entry
*
de
);
void
de_put
(
struct
proc_dir_entry
*
de
);
extern
struct
vfsmount
*
proc_mnt
;
int
proc_fill_super
(
struct
super_block
*
);
struct
inode
*
proc_get_inode
(
struct
super_block
*
,
unsigned
int
,
struct
proc_dir_entry
*
);
/*
* These are generic /proc routines that use the internal
* "struct proc_dir_entry" tree to traverse the filesystem.
*
* The /proc root directory has extended versions to take care
* of the /proc/<pid> subdirectories.
*/
int
proc_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
struct
dentry
*
proc_lookup
(
struct
inode
*
,
struct
dentry
*
,
struct
nameidata
*
);
fs/proc/proc_devtree.c
View file @
3174c21b
...
...
@@ -11,6 +11,7 @@
#include <linux/string.h>
#include <asm/prom.h>
#include <asm/uaccess.h>
#include "internal.h"
#ifndef HAVE_ARCH_DEVTREE_FIXUPS
static
inline
void
set_node_proc_entry
(
struct
device_node
*
np
,
...
...
include/linux/proc_fs.h
View file @
3174c21b
...
...
@@ -93,20 +93,9 @@ struct vmcore {
#ifdef CONFIG_PROC_FS
extern
spinlock_t
proc_subdir_lock
;
extern
void
proc_root_init
(
void
);
void
proc_flush_task
(
struct
task_struct
*
task
);
struct
dentry
*
proc_pid_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
struct
nameidata
*
);
int
proc_pid_readdir
(
struct
file
*
filp
,
void
*
dirent
,
filldir_t
filldir
);
unsigned
long
task_vsize
(
struct
mm_struct
*
);
int
task_statm
(
struct
mm_struct
*
,
int
*
,
int
*
,
int
*
,
int
*
);
void
task_mem
(
struct
seq_file
*
,
struct
mm_struct
*
);
void
clear_refs_smap
(
struct
mm_struct
*
mm
);
struct
proc_dir_entry
*
de_get
(
struct
proc_dir_entry
*
de
);
void
de_put
(
struct
proc_dir_entry
*
de
);
extern
struct
proc_dir_entry
*
create_proc_entry
(
const
char
*
name
,
mode_t
mode
,
struct
proc_dir_entry
*
parent
);
...
...
@@ -116,20 +105,7 @@ struct proc_dir_entry *proc_create_data(const char *name, mode_t mode,
void
*
data
);
extern
void
remove_proc_entry
(
const
char
*
name
,
struct
proc_dir_entry
*
parent
);
extern
struct
vfsmount
*
proc_mnt
;
struct
pid_namespace
;
extern
int
proc_fill_super
(
struct
super_block
*
);
extern
struct
inode
*
proc_get_inode
(
struct
super_block
*
,
unsigned
int
,
struct
proc_dir_entry
*
);
/*
* These are generic /proc routines that use the internal
* "struct proc_dir_entry" tree to traverse the filesystem.
*
* The /proc root directory has extended versions to take care
* of the /proc/<pid> subdirectories.
*/
extern
int
proc_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
extern
struct
dentry
*
proc_lookup
(
struct
inode
*
,
struct
dentry
*
,
struct
nameidata
*
);
extern
int
pid_ns_prepare_proc
(
struct
pid_namespace
*
ns
);
extern
void
pid_ns_release_proc
(
struct
pid_namespace
*
ns
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment