| #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 |