lib/aos/slot_alloc/slot_alloc.c
errval_t slot_alloc(struct capref *ret)
{
    struct slot_allocator *ca = get_default_slot_allocator();
    return ca->alloc(ca, ret);
}
/**
 * \brief Default slot allocator
 *
 * \param ret Pointer to the cap to return the allocated slot in
 *
 * Allocates one slot from the default allocator
 */
\brief Default slot allocator
\param ret Pointer to the cap to return the allocated slot in

Allocates one slot from the default allocator
\ brief Default slot allocator \ param ret Pointer to the cap to return the allocated slot in Allocates one slot from the default allocator
errval_t slot_alloc(struct capref *ret)
{
    struct slot_allocator *ca = get_default_slot_allocator();
    return ca->alloc(ca, ret);
}
errval_t slot_alloc ( struct capref * ret ) { struct slot_allocator * ca = get_default_slot_allocator ( ) ; return ca -> alloc ( ca , ret ) ; }
\brief Default slot allocator
 \param ret Pointer to the cap to return the allocated slot in
\ brief Default slot allocator \ param ret Pointer to the cap to return the allocated slot in