diff options
| author | PancakeTAS <pancake@mgnet.work> | 2026-06-13 19:52:25 +0200 |
|---|---|---|
| committer | PancakeTAS <pancake@mgnet.work> | 2026-06-14 16:27:29 +0200 |
| commit | 2bc4b641220f4e5de88525a6bbe4b423b541317c (patch) | |
| tree | 98c79958a90a6d2ec0bd94f3af79976df1054e4f /src | |
| parent | perf(mpu): Ponder batch heap extraction (diff) | |
perf(mpu): Remove zero-copy items
See 'zerocopy' branch
Diffstat (limited to 'src')
| -rw-r--r-- | src/mpu.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -60,9 +60,6 @@ static inline uint64_t get_time_now(void) { + ((uint64_t) ts.tv_nsec / 1000000ULL); } -// TODO: Zero-copy send() requiring the user to reserve space for the header. -// Perhaps consider MSG_MORE for sending header & payload separately or sendmsg() - int mpu_send(mpu_ctx_t* ctx, const uint8_t* data, size_t len) { if (!ctx || !data || len == 0 || len > MPU_MTU - sizeof(mpu_hdr_t)) { errno = EINVAL; @@ -93,9 +90,6 @@ int mpu_send(mpu_ctx_t* ctx, const uint8_t* data, size_t len) { return 0; } -// TODO: Zero-copy recv() into reorder buffer slot, requiring the user to provide a callback -// for processing received packets, instead of copying into a user buffer. - ssize_t mpu_recv(mpu_ctx_t* ctx, uint8_t* data, size_t len) { if (!ctx || !data || !len) { errno = EINVAL; |
