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
b28fc822
Commit
b28fc822
authored
Jan 11, 2018
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto: af_alg: convert to ->poll_mask
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
5001c2dc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
16 deletions
+8
-16
crypto/af_alg.c
crypto/af_alg.c
+3
-10
crypto/algif_aead.c
crypto/algif_aead.c
+2
-2
crypto/algif_skcipher.c
crypto/algif_skcipher.c
+2
-2
include/crypto/if_alg.h
include/crypto/if_alg.h
+1
-2
No files found.
crypto/af_alg.c
View file @
b28fc822
...
...
@@ -1060,19 +1060,12 @@ void af_alg_async_cb(struct crypto_async_request *_req, int err)
}
EXPORT_SYMBOL_GPL
(
af_alg_async_cb
);
/**
* af_alg_poll - poll system call handler
*/
__poll_t
af_alg_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
)
__poll_t
af_alg_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
alg_sock
*
ask
=
alg_sk
(
sk
);
struct
af_alg_ctx
*
ctx
=
ask
->
private
;
__poll_t
mask
;
sock_poll_wait
(
file
,
sk_sleep
(
sk
),
wait
);
mask
=
0
;
__poll_t
mask
=
0
;
if
(
!
ctx
->
more
||
ctx
->
used
)
mask
|=
EPOLLIN
|
EPOLLRDNORM
;
...
...
@@ -1082,7 +1075,7 @@ __poll_t af_alg_poll(struct file *file, struct socket *sock,
return
mask
;
}
EXPORT_SYMBOL_GPL
(
af_alg_poll
);
EXPORT_SYMBOL_GPL
(
af_alg_poll
_mask
);
/**
* af_alg_alloc_areq - allocate struct af_alg_async_req
...
...
crypto/algif_aead.c
View file @
b28fc822
...
...
@@ -375,7 +375,7 @@ static struct proto_ops algif_aead_ops = {
.
sendmsg
=
aead_sendmsg
,
.
sendpage
=
af_alg_sendpage
,
.
recvmsg
=
aead_recvmsg
,
.
poll
=
af_alg_poll
,
.
poll
_mask
=
af_alg_poll_mask
,
};
static
int
aead_check_key
(
struct
socket
*
sock
)
...
...
@@ -471,7 +471,7 @@ static struct proto_ops algif_aead_ops_nokey = {
.
sendmsg
=
aead_sendmsg_nokey
,
.
sendpage
=
aead_sendpage_nokey
,
.
recvmsg
=
aead_recvmsg_nokey
,
.
poll
=
af_alg_poll
,
.
poll
_mask
=
af_alg_poll_mask
,
};
static
void
*
aead_bind
(
const
char
*
name
,
u32
type
,
u32
mask
)
...
...
crypto/algif_skcipher.c
View file @
b28fc822
...
...
@@ -205,7 +205,7 @@ static struct proto_ops algif_skcipher_ops = {
.
sendmsg
=
skcipher_sendmsg
,
.
sendpage
=
af_alg_sendpage
,
.
recvmsg
=
skcipher_recvmsg
,
.
poll
=
af_alg_poll
,
.
poll
_mask
=
af_alg_poll_mask
,
};
static
int
skcipher_check_key
(
struct
socket
*
sock
)
...
...
@@ -301,7 +301,7 @@ static struct proto_ops algif_skcipher_ops_nokey = {
.
sendmsg
=
skcipher_sendmsg_nokey
,
.
sendpage
=
skcipher_sendpage_nokey
,
.
recvmsg
=
skcipher_recvmsg_nokey
,
.
poll
=
af_alg_poll
,
.
poll
_mask
=
af_alg_poll_mask
,
};
static
void
*
skcipher_bind
(
const
char
*
name
,
u32
type
,
u32
mask
)
...
...
include/crypto/if_alg.h
View file @
b28fc822
...
...
@@ -245,8 +245,7 @@ ssize_t af_alg_sendpage(struct socket *sock, struct page *page,
int
offset
,
size_t
size
,
int
flags
);
void
af_alg_free_resources
(
struct
af_alg_async_req
*
areq
);
void
af_alg_async_cb
(
struct
crypto_async_request
*
_req
,
int
err
);
__poll_t
af_alg_poll
(
struct
file
*
file
,
struct
socket
*
sock
,
poll_table
*
wait
);
__poll_t
af_alg_poll_mask
(
struct
socket
*
sock
,
__poll_t
events
);
struct
af_alg_async_req
*
af_alg_alloc_areq
(
struct
sock
*
sk
,
unsigned
int
areqlen
);
int
af_alg_get_rsgl
(
struct
sock
*
sk
,
struct
msghdr
*
msg
,
int
flags
,
...
...
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