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
d09b1b68
Commit
d09b1b68
authored
Oct 11, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/bluetooth/bnep/core.c: Update for new sendmsg args.
parent
506ebdb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
net/bluetooth/bnep/core.c
net/bluetooth/bnep/core.c
+31
-4
No files found.
net/bluetooth/bnep/core.c
View file @
d09b1b68
...
...
@@ -97,11 +97,26 @@ static void __bnep_unlink_session(struct bnep_session *s)
static
int
bnep_send
(
struct
bnep_session
*
s
,
void
*
data
,
size_t
len
)
{
struct
kiocb
iocb
;
struct
sock_iocb
*
si
;
struct
socket
*
sock
=
s
->
sock
;
struct
iovec
iv
=
{
data
,
len
};
int
err
;
s
->
msg
.
msg_iov
=
&
iv
;
s
->
msg
.
msg_iovlen
=
1
;
return
sock
->
ops
->
sendmsg
(
sock
,
&
s
->
msg
,
len
,
NULL
);
init_sync_kiocb
(
&
iocb
,
NULL
);
si
=
kiocb_to_siocb
(
&
iocb
);
si
->
scm
=
NULL
;
si
->
sock
=
sock
;
si
->
msg
=
&
s
->
msg
;
si
->
size
=
len
;
err
=
sock
->
ops
->
sendmsg
(
&
iocb
,
sock
,
&
s
->
msg
,
len
,
NULL
);
if
(
-
EIOCBQUEUED
==
err
)
err
=
wait_on_sync_kiocb
(
&
iocb
);
return
err
;
}
static
int
bnep_send_rsp
(
struct
bnep_session
*
s
,
u8
ctrl
,
u16
resp
)
...
...
@@ -426,10 +441,22 @@ static inline int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb)
len
+=
skb
->
len
;
/* FIXME: linearize skb */
{
struct
kiocb
iocb
;
struct
sock_iocb
*
si
;
s
->
msg
.
msg_iov
=
iv
;
s
->
msg
.
msg_iovlen
=
il
;
len
=
sock
->
ops
->
sendmsg
(
sock
,
&
s
->
msg
,
len
,
NULL
);
s
->
msg
.
msg_iov
=
iv
;
s
->
msg
.
msg_iovlen
=
il
;
init_sync_kiocb
(
&
iocb
,
NULL
);
si
=
kiocb_to_siocb
(
&
iocb
);
si
->
scm
=
NULL
;
si
->
sock
=
sock
;
si
->
msg
=
&
s
->
msg
;
si
->
size
=
len
;
len
=
sock
->
ops
->
sendmsg
(
&
iocb
,
sock
,
&
s
->
msg
,
len
,
NULL
);
if
(
-
EIOCBQUEUED
==
len
)
len
=
wait_on_sync_kiocb
(
&
iocb
);
}
kfree_skb
(
skb
);
if
(
len
>
0
)
{
...
...
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