0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Slab: can be deleted as a single object

This commit is contained in:
Maria Matejka 2024-05-30 23:05:15 +02:00
parent 9490ed2bc5
commit a2ddd3d443

View File

@ -245,6 +245,17 @@ sl_new(pool *p, uint size)
return s;
}
/**
* sl_delete - destroy an existing Slab
* @s: slab
*
* This function destroys the given Slab.
*/
void sl_delete(slab *s)
{
rfree(&s->r);
}
/**
* sl_alloc - allocate an object from Slab
* @s: slab