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
802168da
Commit
802168da
authored
Feb 25, 2004
by
Stephen Hemminger
Committed by
David S. Miller
Feb 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Make irda_device_txqueue_empty inline.
parent
69681d65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
include/net/irda/irda_device.h
include/net/irda/irda_device.h
+5
-1
net/irda/irda_device.c
net/irda/irda_device.c
+0
-18
No files found.
include/net/irda/irda_device.h
View file @
802168da
...
...
@@ -45,6 +45,7 @@
#include <linux/skbuff.h>
/* struct sk_buff */
#include <linux/irda.h>
#include <net/pkt_sched.h>
#include <net/irda/irda.h>
#include <net/irda/qos.h>
/* struct qos_info */
#include <net/irda/irqueue.h>
/* irda_queue_t */
...
...
@@ -219,7 +220,10 @@ int irda_device_is_media_busy(struct net_device *dev);
int
irda_device_is_receiving
(
struct
net_device
*
dev
);
/* Interface for internal use */
int
irda_device_txqueue_empty
(
struct
net_device
*
dev
);
static
inline
int
irda_device_txqueue_empty
(
const
struct
net_device
*
dev
)
{
return
(
skb_queue_len
(
&
dev
->
qdisc
->
q
)
==
0
);
}
int
irda_device_set_raw_mode
(
struct
net_device
*
self
,
int
status
);
int
irda_device_set_dtr_rts
(
struct
net_device
*
dev
,
int
dtr
,
int
rts
);
int
irda_device_change_speed
(
struct
net_device
*
dev
,
__u32
speed
);
...
...
net/irda/irda_device.c
View file @
802168da
...
...
@@ -47,8 +47,6 @@
#include <asm/dma.h>
#include <asm/io.h>
#include <net/pkt_sched.h>
#include <net/irda/irda_device.h>
#include <net/irda/irlap.h>
#include <net/irda/timer.h>
...
...
@@ -398,22 +396,6 @@ struct net_device *alloc_irdadev(int sizeof_priv)
return
alloc_netdev
(
sizeof_priv
,
"irda%d"
,
irda_device_setup
);
}
/*
* Function irda_device_txqueue_empty (dev)
*
* Check if there is still some frames in the transmit queue for this
* device. Maybe we should use: q->q.qlen == 0.
*
*/
int
irda_device_txqueue_empty
(
struct
net_device
*
dev
)
{
if
(
skb_queue_len
(
&
dev
->
qdisc
->
q
))
return
FALSE
;
return
TRUE
;
}
/*
* Function irda_device_init_dongle (self, type, qos)
*
...
...
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