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
nexedi
linux
Commits
982d93ca
Commit
982d93ca
authored
Oct 01, 2003
by
Arnaldo Carvalho de Melo
Committed by
Linus Torvalds
Oct 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o kernel/ksyms.c: move relevant EXPORT_SYMBOLs to fs/seq_file.c
parent
1566681d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
+24
-14
fs/seq_file.c
fs/seq_file.c
+24
-3
kernel/ksyms.c
kernel/ksyms.c
+0
-11
No files found.
fs/seq_file.c
View file @
982d93ca
...
...
@@ -6,6 +6,7 @@
*/
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
...
...
@@ -37,6 +38,8 @@ int seq_open(struct file *file, struct seq_operations *op)
return
0
;
}
EXPORT_SYMBOL
(
seq_open
);
/**
* seq_read - ->read() method for sequential files.
* @file, @buf, @size, @ppos: see file_operations method
...
...
@@ -144,6 +147,8 @@ ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
goto
Done
;
}
EXPORT_SYMBOL
(
seq_read
);
static
int
traverse
(
struct
seq_file
*
m
,
loff_t
offset
)
{
loff_t
pos
=
0
;
...
...
@@ -228,6 +233,8 @@ loff_t seq_lseek(struct file *file, loff_t offset, int origin)
return
retval
;
}
EXPORT_SYMBOL
(
seq_lseek
);
/**
* seq_release - free the structures associated with sequential file.
* @file: file in question
...
...
@@ -244,6 +251,8 @@ int seq_release(struct inode *inode, struct file *file)
return
0
;
}
EXPORT_SYMBOL
(
seq_release
);
/**
* seq_escape - print string into buffer, escaping some characters
* @m: target buffer
...
...
@@ -279,6 +288,8 @@ int seq_escape(struct seq_file *m, const char *s, const char *esc)
return
0
;
}
EXPORT_SYMBOL
(
seq_escape
);
int
seq_printf
(
struct
seq_file
*
m
,
const
char
*
f
,
...)
{
va_list
args
;
...
...
@@ -297,9 +308,11 @@ int seq_printf(struct seq_file *m, const char *f, ...)
return
-
1
;
}
EXPORT_SYMBOL
(
seq_printf
);
int
seq_path
(
struct
seq_file
*
m
,
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
char
*
esc
)
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
char
*
esc
)
{
if
(
m
->
count
<
m
->
size
)
{
char
*
s
=
m
->
buf
+
m
->
count
;
...
...
@@ -328,6 +341,8 @@ int seq_path(struct seq_file *m,
return
-
1
;
}
EXPORT_SYMBOL
(
seq_path
);
static
void
*
single_start
(
struct
seq_file
*
p
,
loff_t
*
pos
)
{
return
NULL
+
(
*
pos
==
0
);
...
...
@@ -343,7 +358,8 @@ static void single_stop(struct seq_file *p, void *v)
{
}
int
single_open
(
struct
file
*
file
,
int
(
*
show
)(
struct
seq_file
*
,
void
*
),
void
*
data
)
int
single_open
(
struct
file
*
file
,
int
(
*
show
)(
struct
seq_file
*
,
void
*
),
void
*
data
)
{
struct
seq_operations
*
op
=
kmalloc
(
sizeof
(
*
op
),
GFP_KERNEL
);
int
res
=
-
ENOMEM
;
...
...
@@ -362,6 +378,8 @@ int single_open(struct file *file, int (*show)(struct seq_file *, void*), void *
return
res
;
}
EXPORT_SYMBOL
(
single_open
);
int
single_release
(
struct
inode
*
inode
,
struct
file
*
file
)
{
struct
seq_operations
*
op
=
((
struct
seq_file
*
)
file
->
private_data
)
->
op
;
...
...
@@ -370,6 +388,8 @@ int single_release(struct inode *inode, struct file *file)
return
res
;
}
EXPORT_SYMBOL
(
single_release
);
int
seq_release_private
(
struct
inode
*
inode
,
struct
file
*
file
)
{
struct
seq_file
*
seq
=
file
->
private_data
;
...
...
@@ -379,3 +399,4 @@ int seq_release_private(struct inode *inode, struct file *file)
return
seq_release
(
inode
,
file
);
}
EXPORT_SYMBOL
(
seq_release_private
);
kernel/ksyms.c
View file @
982d93ca
...
...
@@ -45,7 +45,6 @@
#include <linux/uio.h>
#include <linux/tty.h>
#include <linux/in6.h>
#include <linux/seq_file.h>
#include <linux/binfmts.h>
#include <linux/namei.h>
#include <linux/buffer_head.h>
...
...
@@ -313,16 +312,6 @@ EXPORT_SYMBOL(securebits);
EXPORT_SYMBOL
(
cap_bset
);
EXPORT_SYMBOL
(
daemonize
);
EXPORT_SYMBOL
(
csum_partial
);
/* for networking and md */
EXPORT_SYMBOL
(
seq_escape
);
EXPORT_SYMBOL
(
seq_printf
);
EXPORT_SYMBOL
(
seq_path
);
EXPORT_SYMBOL
(
seq_open
);
EXPORT_SYMBOL
(
seq_release
);
EXPORT_SYMBOL
(
seq_read
);
EXPORT_SYMBOL
(
seq_lseek
);
EXPORT_SYMBOL
(
single_open
);
EXPORT_SYMBOL
(
single_release
);
EXPORT_SYMBOL
(
seq_release_private
);
/* Miscellaneous access points */
EXPORT_SYMBOL
(
si_meminfo
);
...
...
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