blob: 55079397b5cce580ebcd9d08b90e6749d3b8d81c [file] [log] [blame]
#ifndef _FSDRVPROTODEF_H_
#define _FSDRVPROTODEF_H_
// Note - this file cannot include any headers as it is also included by both userspace and kernel sources.
// Layer 1 - Netlink Protocol
#define FSDRV_NL_MSG_TYPE (0x10 + 2)
enum {
FSDRV_NL_MSG_READ_REQ,
FSDRV_NL_MSG_WRITE_REQ,
FSDRV_NL_MSG_READ_ACK,
FSDRV_NL_MSG_WRITE_ACK,
FSDRV_NL_MSG_OPEN,
FSDRV_NL_MSG_OPEN_ACK,
FSDRV_NL_MSG_CLOSE,
FSDRV_NL_MSG_CLOSE_ACK,
};
#pragma pack(push,1)
struct fsdrv_nl_hdr {
int32_t op;
uint64_t payload_len;
uint64_t offset;
};
#pragma pack(pop)
#endif