PatchworkOS
Loading...
Searching...
No Matches
ctl.h File Reference
#include <kernel/fs/file.h>
#include <stdint.h>

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.
 
typedef ctl_t ctl_array_t[]
 Type definition for an array of ctl commands.
 

Functions

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