mirror of
https://github.com/drasko/codezero.git
synced 2026-02-10 17:03:26 +01:00
Initial commit
This commit is contained in:
15
include/l4/lib/idpool.h
Normal file
15
include/l4/lib/idpool.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#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);
|
||||
|
||||
#endif /* __IDPOOL_H__ */
|
||||
Reference in New Issue
Block a user