lib/aos/paging.c
errval_t paging_map_frame_attr(struct paging_state *st, void **buf,
                               size_t bytes, struct capref frame,
                               int flags, void *arg1, void *arg2)
{
    errval_t err;
    err = paging_alloc(st, buf, bytes);
    assert(err_is_ok(err));
    return paging_map_fixed_attr(st, (lvaddr_t)(*buf), frame, bytes, flags);
}
/**
 * \brief map a user provided frame, and return the VA of the mapped
 *        frame in `buf`.
 */
\brief map a user provided frame, and return the VA of the mapped
frame in `buf`.
\ brief map a user provided frame and return the VA of the mapped frame in ` buf ` .
errval_t paging_map_frame_attr(struct paging_state *st, void **buf,
                               size_t bytes, struct capref frame,
                               int flags, void *arg1, void *arg2)
{
    errval_t err;
    err = paging_alloc(st, buf, bytes);
    assert(err_is_ok(err));
    return paging_map_fixed_attr(st, (lvaddr_t)(*buf), frame, bytes, flags);
}
errval_t paging_map_frame_attr ( struct paging_state * st , void * * buf , size_t bytes , struct capref frame , int flags , void * arg1 , void * arg2 ) { errval_t err ; err = paging_alloc ( st , buf , bytes ) ; assert ( err_is_ok ( err ) ) ; return paging_map_fixed_attr ( st , ( lvaddr_t ) ( * buf ) , frame , bytes , flags ) ; }
\brief map a user provided frame, and return the VA of the mapped
        frame in `buf`.
\ brief map a user provided frame and return the VA of the mapped frame in ` buf ` .