net: change proto and proto_ops accept type
Rather than pass in flags, error pointer, and whether this is a kernel invocation or not, add a struct proto_accept_arg struct as the argument. This then holds all of these arguments, and prepares accept for being able to pass back more information. No functional changes in this patch. Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -166,7 +166,8 @@ int af_alg_unregister_type(const struct af_alg_type *type);
|
||||
|
||||
int af_alg_release(struct socket *sock);
|
||||
void af_alg_release_parent(struct sock *sk);
|
||||
int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
|
||||
int af_alg_accept(struct sock *sk, struct socket *newsock,
|
||||
struct proto_accept_arg *arg);
|
||||
|
||||
void af_alg_free_sg(struct af_alg_sgl *sgl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user