mirror of
https://github.com/drasko/codezero.git
synced 2026-02-13 10:23:16 +01:00
Boot files and tasks are now initialised together. Theads can ask for particular space and thread ids, if they're unused. This enables us to get predefined ids for known tasks such as the VFS task. Fixes to README Other minor fixes.
17 lines
309 B
C
17 lines
309 B
C
#ifndef __IDPOOL_H__
|
|
#define __IDPOOL_H__
|
|
|
|
#include <l4/lib/bit.h>
|
|
|
|
struct id_pool {
|
|
int nwords;
|
|
u32 bitmap[];
|
|
};
|
|
|
|
struct id_pool *id_pool_new_init(int mapsize);
|
|
int id_new(struct id_pool *pool);
|
|
int id_del(struct id_pool *pool, int id);
|
|
int id_get(struct id_pool *pool, int id);
|
|
|
|
#endif /* __IDPOOL_H__ */
|