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
5f1dace7
Commit
5f1dace7
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 2.2.8pre3
parent
41ab864d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
44 deletions
+19
-44
net/irda/ircomm/ircomm_common.c
net/irda/ircomm/ircomm_common.c
+3
-9
net/irda/irlan/irlan_common.c
net/irda/irlan/irlan_common.c
+4
-11
net/irda/irlpt/irlpt_cli.c
net/irda/irlpt/irlpt_cli.c
+4
-10
net/irda/irlpt/irlpt_srvr.c
net/irda/irlpt/irlpt_srvr.c
+4
-10
net/irda/irproc.c
net/irda/irproc.c
+4
-4
No files found.
net/irda/ircomm/ircomm_common.c
View file @
5f1dace7
...
...
@@ -147,13 +147,7 @@ static char *ircommevent[] = {
};
#ifdef CONFIG_PROC_FS
extern
struct
proc_dir_entry
proc_irda
;
struct
proc_dir_entry
proc_ircomm
=
{
0
,
6
,
"ircomm"
,
S_IFREG
|
S_IRUGO
,
1
,
0
,
0
,
0
,
NULL
,
&
ircomm_proc_read
,
};
extern
struct
proc_dir_entry
*
proc_irda
;
#endif
static
void
(
*
state
[])(
struct
ircomm_cb
*
self
,
IRCOMM_EVENT
event
,
...
...
@@ -229,7 +223,7 @@ __initfunc(int ircomm_init(void))
*/
#ifdef CONFIG_PROC_FS
proc_register
(
&
proc_irda
,
&
proc_ircomm
)
;
create_proc_entry
(
"ircomm"
,
0
,
proc_irda
)
->
get_info
=
ircomm_proc_read
;
#endif
/* CONFIG_PROC_FS */
...
...
@@ -267,7 +261,7 @@ void ircomm_cleanup(void)
}
#ifdef CONFIG_PROC_FS
proc_unregister
(
&
proc_irda
,
proc_ircomm
.
low_ino
);
remove_proc_entry
(
"ircomm"
,
proc_irda
);
#endif
/* CONFIG_PROC_FS */
}
#endif
/* MODULE */
...
...
net/irda/irlan/irlan_common.c
View file @
5f1dace7
...
...
@@ -99,15 +99,8 @@ static void irlan_close_tsaps(struct irlan_cb *self);
static
int
irlan_proc_read
(
char
*
buf
,
char
**
start
,
off_t
offset
,
int
len
,
int
unused
);
extern
struct
proc_dir_entry
proc_irda
;
struct
proc_dir_entry
proc_irlan
=
{
0
,
5
,
"irlan"
,
S_IFREG
|
S_IRUGO
,
1
,
0
,
0
,
0
,
NULL
,
&
irlan_proc_read
,
};
#endif
/* CONFIG_PROC_FS */
extern
struct
proc_dir_entry
*
proc_irda
;
#endif
void
irlan_watchdog_timer_expired
(
unsigned
long
data
)
{
...
...
@@ -188,7 +181,7 @@ __initfunc(int irlan_init(void))
return
-
ENOMEM
;
}
#ifdef CONFIG_PROC_FS
proc_register
(
&
proc_irda
,
&
proc_irlan
)
;
create_proc_entry
(
"irlan"
,
0
,
proc_irda
)
->
get_info
=
irlan_proc_read
;
#endif
/* CONFIG_PROC_FS */
DEBUG
(
4
,
__FUNCTION__
"()
\n
"
);
...
...
@@ -224,7 +217,7 @@ void irlan_cleanup(void)
irlmp_unregister_service
(
skey
);
#ifdef CONFIG_PROC_FS
proc_unregister
(
&
proc_irda
,
proc_irlan
.
low_ino
);
remove_proc_entry
(
"irlan"
,
proc_irda
);
#endif
/* CONFIG_PROC_FS */
/*
* Delete hashbin and close all irlan client instances in it
...
...
net/irda/irlpt/irlpt_cli.c
View file @
5f1dace7
...
...
@@ -157,14 +157,7 @@ static int irlpt_client_proc_read( char *buf, char **start, off_t offset,
return
len
;
}
struct
proc_dir_entry
proc_irlpt_client
=
{
0
,
12
,
"irlpt_client"
,
S_IFREG
|
S_IRUGO
,
1
,
0
,
0
,
0
,
NULL
/* ops -- default to array */
,
&
irlpt_client_proc_read
/* get_info */
,
};
extern
struct
proc_dir_entry
proc_irda
;
extern
struct
proc_dir_entry
*
proc_irda
;
#endif
/* CONFIG_PROC_FS */
...
...
@@ -193,7 +186,8 @@ __initfunc(int irlpt_client_init(void))
NULL
);
#ifdef CONFIG_PROC_FS
proc_register
(
&
proc_irda
,
&
proc_irlpt_client
);
create_proc_entry
(
"irlpt_client"
,
0
,
proc_irda
)
->
get_info
=
irlpt_client_proc_read
;
#endif
/* CONFIG_PROC_FS */
DEBUG
(
irlpt_client_debug
,
__FUNCTION__
" -->
\n
"
);
...
...
@@ -219,7 +213,7 @@ static void irlpt_client_cleanup(void)
hashbin_delete
(
irlpt_clients
,
(
FREE_FUNC
)
irlpt_client_close
);
#ifdef CONFIG_PROC_FS
proc_unregister
(
&
proc_irda
,
proc_irlpt_client
.
low_ino
);
remove_proc_entry
(
"irlpt_client"
,
proc_irda
);
#endif
DEBUG
(
irlpt_client_debug
,
__FUNCTION__
" -->
\n
"
);
...
...
net/irda/irlpt/irlpt_srvr.c
View file @
5f1dace7
...
...
@@ -160,14 +160,7 @@ static int irlpt_server_proc_read(char *buf, char **start, off_t offset,
return
len
;
}
extern
struct
proc_dir_entry
proc_irda
;
struct
proc_dir_entry
proc_irlpt_server
=
{
0
,
12
,
"irlpt_server"
,
S_IFREG
|
S_IRUGO
,
1
,
0
,
0
,
0
,
NULL
/* ops -- default to array */
,
&
irlpt_server_proc_read
/* get_info */
,
};
extern
struct
proc_dir_entry
*
proc_irda
;
#endif
/* CONFIG_PROC_FS */
...
...
@@ -215,7 +208,8 @@ __initfunc(int irlpt_server_init(void))
register_irlpt_server
();
#ifdef CONFIG_PROC_FS
proc_register
(
&
proc_irda
,
&
proc_irlpt_server
);
create_proc_entry
(
"irlpt_server"
,
0
,
proc_irda
)
->
get_info
=
irlpt_server_proc_read
;
#endif
/* CONFIG_PROC_FS */
DEBUG
(
irlpt_server_debug
,
__FUNCTION__
" -->
\n
"
);
...
...
@@ -248,7 +242,7 @@ static void irlpt_server_cleanup(void)
kfree
(
irlpt_server
);
#ifdef CONFIG_PROC_FS
proc_unregister
(
&
proc_irda
,
proc_irlpt_server
.
low_ino
);
remove_proc_entry
(
"irlpt_server"
,
proc_irda
);
#endif
DEBUG
(
irlpt_server_debug
,
__FUNCTION__
" -->
\n
"
);
...
...
net/irda/irproc.c
View file @
5f1dace7
...
...
@@ -84,12 +84,12 @@ static irda_entry dir[] = {
*/
void
irda_proc_register
(
void
)
{
int
i
;
proc_irda
=
proc_create
_entry
(
"net/irda"
,
S_IFDIR
,
NULL
);
proc_irda
=
create_proc
_entry
(
"net/irda"
,
S_IFDIR
,
NULL
);
#ifdef MODULE
proc_irda
->
fill_inode
=
&
irda_proc_modcount
;
#endif
/* MODULE */
for
(
i
=
0
;
i
<
IRDA_ENTRIES_NUM
;
i
++
)
proc_create
_entry
(
dir
[
i
].
name
,
0
,
proc_irda
)
->
get_info
=
dir
[
i
].
fn
;
create_proc
_entry
(
dir
[
i
].
name
,
0
,
proc_irda
)
->
get_info
=
dir
[
i
].
fn
;
}
/*
...
...
@@ -101,6 +101,6 @@ void irda_proc_register(void) {
void
irda_proc_unregister
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
IRDA_ENTRIES_NUM
;
i
++
)
proc_remove
_entry
(
dir
[
i
].
name
,
proc_irda
);
proc_remove
_entry
(
"net/irda"
,
NULL
);
remove_proc
_entry
(
dir
[
i
].
name
,
proc_irda
);
remove_proc
_entry
(
"net/irda"
,
NULL
);
}
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