42 #define MIN_HANDLES 0x100 43 #define MAX_HANDLES 0x10000 bool handleSet(struct handleTable *table, uint32_t handle, struct object *object)
Associates a handle (index) with a kernel object.
struct object * handleGet(struct handleTable *table, uint32_t handle)
Returns the kernel object associated to a handle.
void handleTableInit(struct handleTable *table)
Initializes the handle table structure which is part of each process.
void handleForkTable(struct handleTable *destination, struct handleTable *source)
Forks a handle table.
uint32_t handleCount(struct handleTable *table)
Returns the number of handles in a handletable.
void handleTableFree(struct handleTable *table)
Releases the memory of the handle table and all associated objects.
bool handleRelease(struct handleTable *table, uint32_t handle)
Releases the object associated with a handle.
uint32_t handleAllocate(struct handleTable *table, struct object *object)
Allocates a handle (index) for a specific kernel object.