#include <stdbool.h>
#include <stdint.h>
#include <sys/kassert.h>
#include <sys/queue.h>
#include <sys/kmem.h>
#include <sys/handle.h>
#include <sys/thread.h>
#include <sys/syscall.h>
Go to the source code of this file.
◆ DEFINE_SLAB()
DEFINE_SLAB |
( |
Handle |
, |
|
|
& |
handleSlab |
|
) |
| |
◆ Handle_Add()
Definition at line 47 of file handle.c.
48{
49 int slot;
50
54
56
58
60}
#define PROCESS_HANDLE_SLOTS
#define TAILQ_INSERT_HEAD(head, elm, field)
HandleQueue handles[PROCESS_HANDLE_SLOTS]
◆ Handle_Destroy()
void Handle_Destroy |
( |
Process * |
proc | ) |
|
Definition at line 33 of file handle.c.
34{
35 int i;
36 Handle *handle, *handle_tmp;
37
41 (handle->
close)(handle);
42 }
43 }
44}
#define TAILQ_FOREACH_SAFE(var, head, field, tvar)
#define TAILQ_REMOVE(head, elm, field)
◆ Handle_GlobalInit()
void Handle_GlobalInit |
( |
| ) |
|
Definition at line 15 of file handle.c.
16{
18}
void Slab_Init(Slab *slab, const char *name, uintptr_t objsz, uintptr_t align)
◆ Handle_Init()
Definition at line 23 of file handle.c.
24{
25 int i;
26
29 }
30}
◆ Handle_Lookup()
Definition at line 71 of file handle.c.
72{
75
78 return handle;
79 }
80
82}
#define TAILQ_FOREACH(var, head, field)
◆ Handle_Remove()
◆ handleSlab