lib/aos/slot_alloc/slot_alloc.c
errval_t slot_alloc_root(struct capref *ret)
{
    struct slot_alloc_state *state = get_slot_alloc_state();
    struct slot_allocator *ca = (struct slot_allocator*)(&state->rootca);
    return ca->alloc(ca, ret);
}
/**
 * \brief slot allocator for the root
 *
 * \param ret Pointer to the cap to return the allocated slot in
 *
 * Allocates one slot from the root slot allocator
 */
\brief slot allocator for the root
\param ret Pointer to the cap to return the allocated slot in

Allocates one slot from the root slot allocator
\ brief slot allocator for the root \ param ret Pointer to the cap to return the allocated slot in Allocates one slot from the root slot allocator
errval_t slot_alloc_root(struct capref *ret)
{
    struct slot_alloc_state *state = get_slot_alloc_state();
    struct slot_allocator *ca = (struct slot_allocator*)(&state->rootca);
    return ca->alloc(ca, ret);
}
errval_t slot_alloc_root ( struct capref * ret ) { struct slot_alloc_state * state = get_slot_alloc_state ( ) ; struct slot_allocator * ca = ( struct slot_allocator * ) ( & state -> rootca ) ; return ca -> alloc ( ca , ret ) ; }
\brief slot allocator for the root
 \param ret Pointer to the cap to return the allocated slot in
\ brief slot allocator for the root \ param ret Pointer to the cap to return the allocated slot in