Files
mop3/kernel/proc/stream.h
kamkow1 c8fb575bdd
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m7s
Build documentation / build-and-deploy (push) Successful in 39s
Change formatting rules
2026-04-24 01:54:48 +02:00

28 lines
666 B
C

#ifndef _KERNEL_PROC_STREAM_H
#define _KERNEL_PROC_STREAM_H
#include <libk/list.h>
#include <libk/ringbuffer.h>
#include <libk/std.h>
#include <proc/suspension_q.h>
#define PROC_STREAM_MAX (64 * 1024)
struct proc;
struct proc_resource;
struct cpu;
struct reschedule_ctx;
struct proc_stream {
struct proc_resource* resource;
struct ringbuffer ringbuffer;
};
void proc_cleanup_resource_stream(struct proc_resource* resource, struct reschedule_ctx* rctx);
void proc_stream_write(struct proc_stream* stream, void* data, size_t data_size);
size_t proc_stream_read(struct proc_stream* stream, void* out_data, size_t data_size);
#endif // _KERNEL_PROC_STREAM_H