Skip to content

Commit bece7b2

Browse files
Sjur Braendelanddavem330
authored andcommitted
caif: Rewritten socket implementation
Changes: This is a complete re-write of the socket layer. Making the socket implementation more aligned with the other socket layers and using more of the support functions available in sock.c. Lots of code is copied from af_unix (and some from af_irda). Non-blocking mode should be working as well. Signed-off-by: Sjur Braendeland <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8d545c8 commit bece7b2

File tree

2 files changed

+831
-969
lines changed

2 files changed

+831
-969
lines changed

include/linux/caif/caif_socket.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <sys/socket.h>
1717
#endif
1818

19-
2019
/**
2120
* enum caif_link_selector - Physical Link Selection.
2221
* @CAIF_LINK_HIGH_BANDW: Physical interface for high-bandwidth
@@ -59,7 +58,7 @@ enum caif_channel_priority {
5958
/**
6059
* enum caif_protocol_type - CAIF Channel type.
6160
* @CAIFPROTO_AT: Classic AT channel.
62-
* @CAIFPROTO_DATAGRAM: Datagram channel.
61+
* @CAIFPROTO_DATAGRAM: Datagram channel.
6362
* @CAIFPROTO_DATAGRAM_LOOP: Datagram loopback channel, used for testing.
6463
* @CAIFPROTO_UTIL: Utility (Psock) channel.
6564
* @CAIFPROTO_RFM: Remote File Manager
@@ -87,6 +86,7 @@ enum caif_at_type {
8786

8887
/**
8988
* struct sockaddr_caif - the sockaddr structure for CAIF sockets.
89+
* @family: Address family number, must be AF_CAIF.
9090
* @u: Union of address data 'switched' by family.
9191
* :
9292
* @u.at: Applies when family = CAIFPROTO_AT.
@@ -153,6 +153,7 @@ struct sockaddr_caif {
153153
*
154154
*
155155
* This enum defines the CAIF Socket options to be used on a socket
156+
* of type PF_CAIF.
156157
*
157158
*/
158159
enum caif_socket_opts {

0 commit comments

Comments
 (0)