lib: msg-fs: implement open() send/recv
This commit is contained in:
@@ -7,21 +7,36 @@
|
||||
#define ROSETTA_MSG_FS 0x01409DD2U
|
||||
|
||||
/* rosetta.msg.fs.open message ID */
|
||||
#define ROSETTA_MSG_FS_OPEN 0x7D837778U
|
||||
#define ROSETTA_MSG_FS_OPEN 0x7778U
|
||||
|
||||
struct rosetta_msg_fs_open {
|
||||
struct rosetta_msg msg_base;
|
||||
union {
|
||||
struct {
|
||||
uint16_t o_path;
|
||||
uint16_t o_path_len;
|
||||
uint16_t o_flags;
|
||||
} msg_request;
|
||||
|
||||
struct {
|
||||
int o_err;
|
||||
uint16_t o_fd_index;
|
||||
} msg_response;
|
||||
};
|
||||
};
|
||||
|
||||
extern kern_status_t rosetta_msg_fs_open_send(
|
||||
kern_handle_t port,
|
||||
const char *path,
|
||||
int flags,
|
||||
int *out_err);
|
||||
extern kern_status_t rosetta_msg_fs_open_recv(
|
||||
kern_handle_t channel,
|
||||
msgid_t id,
|
||||
struct rosetta_msg_string *out_path,
|
||||
int *out_flags);
|
||||
extern kern_status_t rosetta_msg_fs_open_reply(
|
||||
kern_handle_t channel,
|
||||
msgid_t id,
|
||||
int err);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user