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
95a7045a
Commit
95a7045a
authored
Sep 09, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rxrpc use SEQ_START_TOKEN.
parent
d5787c80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
net/rxrpc/proc.c
net/rxrpc/proc.c
+12
-12
No files found.
net/rxrpc/proc.c
View file @
95a7045a
...
...
@@ -222,7 +222,7 @@ static void *rxrpc_proc_transports_start(struct seq_file *m, loff_t *_pos)
/* allow for the header line */
if
(
!
pos
)
return
(
void
*
)
1
;
return
SEQ_START_TOKEN
;
pos
--
;
/* find the n'th element in the list */
...
...
@@ -244,7 +244,7 @@ static void *rxrpc_proc_transports_next(struct seq_file *p, void *v, loff_t *pos
(
*
pos
)
++
;
_p
=
v
;
_p
=
v
==
(
void
*
)
1
?
rxrpc_proc_transports
.
next
:
_p
->
next
;
_p
=
(
v
==
SEQ_START_TOKEN
)
?
rxrpc_proc_transports
.
next
:
_p
->
next
;
return
_p
!=
&
rxrpc_proc_transports
?
_p
:
NULL
;
}
/* end rxrpc_proc_transports_next() */
...
...
@@ -269,7 +269,7 @@ static int rxrpc_proc_transports_show(struct seq_file *m, void *v)
list_entry
(
v
,
struct
rxrpc_transport
,
proc_link
);
/* display header on line 1 */
if
(
v
==
(
void
*
)
1
)
{
if
(
v
==
SEQ_START_TOKEN
)
{
seq_puts
(
m
,
"LOCAL USE
\n
"
);
return
0
;
}
...
...
@@ -317,7 +317,7 @@ static void *rxrpc_proc_peers_start(struct seq_file *m, loff_t *_pos)
/* allow for the header line */
if
(
!
pos
)
return
(
void
*
)
1
;
return
SEQ_START_TOKEN
;
pos
--
;
/* find the n'th element in the list */
...
...
@@ -339,7 +339,7 @@ static void *rxrpc_proc_peers_next(struct seq_file *p, void *v, loff_t *pos)
(
*
pos
)
++
;
_p
=
v
;
_p
=
v
==
(
void
*
)
1
?
rxrpc_peers
.
next
:
_p
->
next
;
_p
=
(
v
==
SEQ_START_TOKEN
)
?
rxrpc_peers
.
next
:
_p
->
next
;
return
_p
!=
&
rxrpc_peers
?
_p
:
NULL
;
}
/* end rxrpc_proc_peers_next() */
...
...
@@ -364,7 +364,7 @@ static int rxrpc_proc_peers_show(struct seq_file *m, void *v)
signed
long
timeout
;
/* display header on line 1 */
if
(
v
==
(
void
*
)
1
)
{
if
(
v
==
SEQ_START_TOKEN
)
{
seq_puts
(
m
,
"LOCAL REMOTE USAGE CONNS TIMEOUT"
" MTU RTT(uS)
\n
"
);
return
0
;
...
...
@@ -424,7 +424,7 @@ static void *rxrpc_proc_conns_start(struct seq_file *m, loff_t *_pos)
/* allow for the header line */
if
(
!
pos
)
return
(
void
*
)
1
;
return
SEQ_START_TOKEN
;
pos
--
;
/* find the n'th element in the list */
...
...
@@ -446,7 +446,7 @@ static void *rxrpc_proc_conns_next(struct seq_file *p, void *v, loff_t *pos)
(
*
pos
)
++
;
_p
=
v
;
_p
=
(
v
==
(
void
*
)
1
)
?
rxrpc_conns
.
next
:
_p
->
next
;
_p
=
(
v
==
SEQ_START_TOKEN
)
?
rxrpc_conns
.
next
:
_p
->
next
;
return
_p
!=
&
rxrpc_conns
?
_p
:
NULL
;
}
/* end rxrpc_proc_conns_next() */
...
...
@@ -473,7 +473,7 @@ static int rxrpc_proc_conns_show(struct seq_file *m, void *v)
conn
=
list_entry
(
v
,
struct
rxrpc_connection
,
proc_link
);
/* display header on line 1 */
if
(
v
==
(
void
*
)
1
)
{
if
(
v
==
SEQ_START_TOKEN
)
{
seq_puts
(
m
,
"LOCAL REMOTE RPORT SRVC CONN END SERIALNO "
"CALLNO MTU TIMEOUT"
...
...
@@ -538,7 +538,7 @@ static void *rxrpc_proc_calls_start(struct seq_file *m, loff_t *_pos)
/* allow for the header line */
if
(
!
pos
)
return
(
void
*
)
1
;
return
SEQ_START_TOKEN
;
pos
--
;
/* find the n'th element in the list */
...
...
@@ -560,7 +560,7 @@ static void *rxrpc_proc_calls_next(struct seq_file *p, void *v, loff_t *pos)
(
*
pos
)
++
;
_p
=
v
;
_p
=
(
v
==
(
void
*
)
1
)
?
rxrpc_calls
.
next
:
_p
->
next
;
_p
=
(
v
==
SEQ_START_TOKEN
)
?
rxrpc_calls
.
next
:
_p
->
next
;
return
_p
!=
&
rxrpc_calls
?
_p
:
NULL
;
}
/* end rxrpc_proc_calls_next() */
...
...
@@ -584,7 +584,7 @@ static int rxrpc_proc_calls_show(struct seq_file *m, void *v)
struct
rxrpc_call
*
call
=
list_entry
(
v
,
struct
rxrpc_call
,
call_link
);
/* display header on line 1 */
if
(
v
==
(
void
*
)
1
)
{
if
(
v
==
SEQ_START_TOKEN
)
{
seq_puts
(
m
,
"LOCAL REMOT SRVC CONN CALL DIR USE "
" L STATE OPCODE ABORT ERRNO
\n
"
...
...
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