1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
* Copyright (C) Mellanox Technologies Ltd. 2020. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
/* This header file defines socket operations for communicating between UCS
* library and VFS daemon */
/**
* VFS socket message type
*/
typedef enum ucs_vfs_sock_action_t;
/**
* Parameters structure for sending/receiving a message over VFS socket
*/
typedef struct ucs_vfs_sock_message_t;
/**
* Return the Unix-domain socket address of the VFS daemon.
*
* @param [out] un_addr Filled with socket address.
*
* @return 0 on success, or the negative value of errno in case of failure.
*/
int ;
/**
* Enable receiving credentials of the remote process for every message.
* Typically used by the VFS daemon to verify sender identity.
*
* @param [in] fd Enable SO_PASSCRED on this socket.
*
* @return 0 on success, or the negative value of errno in case of failure.
*/
int ;
/**
* Send a message on the VFS socket.
*
* @param [in] fd Socket file descriptor to send the message on.
* @param [in] vfs_msg Message to send.
*
* @return 0 on success, or the negative value of errno in case of failure.
*/
int ;
/**
* Receive a message on the VFS socket.
*
* @param [in] fd Socket file descriptor to receive the message on.
* @param [out] vfs_msg Filled with details of the received message.
*
* @return 0 on success, or the negative value of errno in case of failure.
*/
int ;