PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
ctl.h File Reference
#include <kernel/fs/file.h>
#include <stdint.h>
Include dependency graph for ctl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ctl_t
 Structure defining a ctl command. More...
 

Macros

#define CTL_STANDARD_WRITE_DEFINE(name, ...)
 Helper macro to define a standard ctl write function.
 
#define CTL_STANDARD_OPS_DEFINE(name, ...)
 Helper macro to define a standard ctl file operations structure.
 

Typedefs

typedef uint64_t(* ctl_func_t) (file_t *file, uint64_t, const char **)
 Type definition for a ctl function.
 

Functions

uint64_t ctl_dispatch (ctl_t ctls[], file_t *file, const void *buffer, uint64_t count)
 Dispatch a ctl command.