diff options
author | Stefano Stabellini <sstabellini@kernel.org> | 2017-07-06 20:01:06 +0200 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-08-31 15:45:55 +0200 |
commit | 331a63e6f8e42bf20dfa5b94d717a5ef130fcbee (patch) | |
tree | 21222f25093ffa5d39c0e07b380951e2fd5cd0d9 /drivers/char | |
parent | xen/pvcalls: implement connect command (diff) | |
download | linux-331a63e6f8e42bf20dfa5b94d717a5ef130fcbee.tar.xz linux-331a63e6f8e42bf20dfa5b94d717a5ef130fcbee.zip |
xen/pvcalls: implement bind command
Allocate a socket. Track the allocated passive sockets with a new data
structure named sockpass_mapping. It contains an unbound workqueue to
schedule delayed work for the accept and poll commands. It also has a
reqcopy field to be used to store a copy of a request for delayed work.
Reads/writes to it are protected by a lock (the "copy_lock" spinlock).
Initialize the workqueue in pvcalls_back_bind.
Implement the bind command with inet_bind.
The pass_sk_data_ready event handler will be added later.
Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions