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
df3a5c9f
Commit
df3a5c9f
authored
May 25, 2003
by
Rusty Russell
Committed by
Jeff Garzik
May 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[irda] module refcounts in irlan
parent
4bcb7d97
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
20 deletions
+2
-20
include/net/irda/irlan_common.h
include/net/irda/irlan_common.h
+0
-2
net/irda/irlan/irlan_common.c
net/irda/irlan/irlan_common.c
+0
-14
net/irda/irlan/irlan_eth.c
net/irda/irlan/irlan_eth.c
+2
-4
No files found.
include/net/irda/irlan_common.h
View file @
df3a5c9f
...
@@ -195,8 +195,6 @@ struct irlan_cb {
...
@@ -195,8 +195,6 @@ struct irlan_cb {
struct
irlan_cb
*
irlan_open
(
__u32
saddr
,
__u32
daddr
);
struct
irlan_cb
*
irlan_open
(
__u32
saddr
,
__u32
daddr
);
void
irlan_close
(
struct
irlan_cb
*
self
);
void
irlan_close
(
struct
irlan_cb
*
self
);
void
irlan_close_tsaps
(
struct
irlan_cb
*
self
);
void
irlan_close_tsaps
(
struct
irlan_cb
*
self
);
void
irlan_mod_inc_use_count
(
void
);
void
irlan_mod_dec_use_count
(
void
);
int
irlan_register_netdev
(
struct
irlan_cb
*
self
);
int
irlan_register_netdev
(
struct
irlan_cb
*
self
);
void
irlan_ias_register
(
struct
irlan_cb
*
self
,
__u8
tsap_sel
);
void
irlan_ias_register
(
struct
irlan_cb
*
self
,
__u8
tsap_sel
);
...
...
net/irda/irlan/irlan_common.c
View file @
df3a5c9f
...
@@ -1180,20 +1180,6 @@ void print_ret_code(__u8 code)
...
@@ -1180,20 +1180,6 @@ void print_ret_code(__u8 code)
}
}
}
}
void
irlan_mod_inc_use_count
(
void
)
{
#ifdef MODULE
MOD_INC_USE_COUNT
;
#endif
}
void
irlan_mod_dec_use_count
(
void
)
{
#ifdef MODULE
MOD_DEC_USE_COUNT
;
#endif
}
MODULE_AUTHOR
(
"Dag Brattli <dagb@cs.uit.no>"
);
MODULE_AUTHOR
(
"Dag Brattli <dagb@cs.uit.no>"
);
MODULE_DESCRIPTION
(
"The Linux IrDA LAN protocol"
);
MODULE_DESCRIPTION
(
"The Linux IrDA LAN protocol"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
...
...
net/irda/irlan/irlan_eth.c
View file @
df3a5c9f
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <linux/inetdevice.h>
#include <linux/inetdevice.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>
#include <linux/random.h>
#include <linux/random.h>
#include <linux/module.h>
#include <net/arp.h>
#include <net/arp.h>
#include <net/irda/irda.h>
#include <net/irda/irda.h>
...
@@ -61,6 +62,7 @@ int irlan_eth_init(struct net_device *dev)
...
@@ -61,6 +62,7 @@ int irlan_eth_init(struct net_device *dev)
dev
->
hard_start_xmit
=
irlan_eth_xmit
;
dev
->
hard_start_xmit
=
irlan_eth_xmit
;
dev
->
get_stats
=
irlan_eth_get_stats
;
dev
->
get_stats
=
irlan_eth_get_stats
;
dev
->
set_multicast_list
=
irlan_eth_set_multicast_list
;
dev
->
set_multicast_list
=
irlan_eth_set_multicast_list
;
SET_MODULE_OWNER
(
dev
);
ether_setup
(
dev
);
ether_setup
(
dev
);
...
@@ -112,8 +114,6 @@ int irlan_eth_open(struct net_device *dev)
...
@@ -112,8 +114,6 @@ int irlan_eth_open(struct net_device *dev)
self
->
disconnect_reason
=
0
;
self
->
disconnect_reason
=
0
;
irlan_client_wakeup
(
self
,
self
->
saddr
,
self
->
daddr
);
irlan_client_wakeup
(
self
,
self
->
saddr
,
self
->
daddr
);
irlan_mod_inc_use_count
();
/* Make sure we have a hardware address before we return, so DHCP clients gets happy */
/* Make sure we have a hardware address before we return, so DHCP clients gets happy */
interruptible_sleep_on
(
&
self
->
open_wait
);
interruptible_sleep_on
(
&
self
->
open_wait
);
...
@@ -138,8 +138,6 @@ int irlan_eth_close(struct net_device *dev)
...
@@ -138,8 +138,6 @@ int irlan_eth_close(struct net_device *dev)
/* Stop device */
/* Stop device */
netif_stop_queue
(
dev
);
netif_stop_queue
(
dev
);
irlan_mod_dec_use_count
();
irlan_close_data_channel
(
self
);
irlan_close_data_channel
(
self
);
irlan_close_tsaps
(
self
);
irlan_close_tsaps
(
self
);
...
...
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