Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8c9379e9
Commit
8c9379e9
authored
Dec 08, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify seq_file stuff
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
79e801a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
fs/seq_file.c
fs/seq_file.c
+5
-5
include/linux/seq_file.h
include/linux/seq_file.h
+5
-5
No files found.
fs/seq_file.c
View file @
8c9379e9
...
...
@@ -397,7 +397,7 @@ EXPORT_SYMBOL(seq_printf);
* Returns pointer past last written character in @s, or NULL in case of
* failure.
*/
char
*
mangle_path
(
char
*
s
,
c
har
*
p
,
char
*
esc
)
char
*
mangle_path
(
char
*
s
,
c
onst
char
*
p
,
const
char
*
esc
)
{
while
(
s
<=
p
)
{
char
c
=
*
p
++
;
...
...
@@ -427,7 +427,7 @@ EXPORT_SYMBOL(mangle_path);
* return the absolute path of 'path', as represented by the
* dentry / mnt pair in the path parameter.
*/
int
seq_path
(
struct
seq_file
*
m
,
struct
path
*
path
,
char
*
esc
)
int
seq_path
(
struct
seq_file
*
m
,
const
struct
path
*
path
,
const
char
*
esc
)
{
char
*
buf
;
size_t
size
=
seq_get_buf
(
m
,
&
buf
);
...
...
@@ -450,8 +450,8 @@ EXPORT_SYMBOL(seq_path);
/*
* Same as seq_path, but relative to supplied root.
*/
int
seq_path_root
(
struct
seq_file
*
m
,
struct
path
*
path
,
struct
path
*
root
,
char
*
esc
)
int
seq_path_root
(
struct
seq_file
*
m
,
const
struct
path
*
path
,
c
onst
struct
path
*
root
,
const
c
har
*
esc
)
{
char
*
buf
;
size_t
size
=
seq_get_buf
(
m
,
&
buf
);
...
...
@@ -480,7 +480,7 @@ int seq_path_root(struct seq_file *m, struct path *path, struct path *root,
/*
* returns the path of the 'dentry' from the root of its filesystem.
*/
int
seq_dentry
(
struct
seq_file
*
m
,
struct
dentry
*
dentry
,
char
*
esc
)
int
seq_dentry
(
struct
seq_file
*
m
,
struct
dentry
*
dentry
,
c
onst
c
har
*
esc
)
{
char
*
buf
;
size_t
size
=
seq_get_buf
(
m
,
&
buf
);
...
...
include/linux/seq_file.h
View file @
8c9379e9
...
...
@@ -74,7 +74,7 @@ static inline void seq_commit(struct seq_file *m, int num)
}
}
char
*
mangle_path
(
char
*
s
,
c
har
*
p
,
char
*
esc
);
char
*
mangle_path
(
char
*
s
,
c
onst
char
*
p
,
const
char
*
esc
);
int
seq_open
(
struct
file
*
,
const
struct
seq_operations
*
);
ssize_t
seq_read
(
struct
file
*
,
char
__user
*
,
size_t
,
loff_t
*
);
loff_t
seq_lseek
(
struct
file
*
,
loff_t
,
int
);
...
...
@@ -86,10 +86,10 @@ int seq_write(struct seq_file *seq, const void *data, size_t len);
__printf
(
2
,
3
)
int
seq_printf
(
struct
seq_file
*
,
const
char
*
,
...);
int
seq_path
(
struct
seq_file
*
,
struct
path
*
,
char
*
);
int
seq_dentry
(
struct
seq_file
*
,
struct
dentry
*
,
char
*
);
int
seq_path_root
(
struct
seq_file
*
m
,
struct
path
*
path
,
struct
path
*
root
,
char
*
esc
);
int
seq_path
(
struct
seq_file
*
,
const
struct
path
*
,
const
char
*
);
int
seq_dentry
(
struct
seq_file
*
,
struct
dentry
*
,
c
onst
c
har
*
);
int
seq_path_root
(
struct
seq_file
*
m
,
const
struct
path
*
path
,
c
onst
struct
path
*
root
,
const
c
har
*
esc
);
int
seq_bitmap
(
struct
seq_file
*
m
,
const
unsigned
long
*
bits
,
unsigned
int
nr_bits
);
static
inline
int
seq_cpumask
(
struct
seq_file
*
m
,
const
struct
cpumask
*
mask
)
...
...
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