Changeset 101516d in mainline


Ignore:
Timestamp:
2016-08-30T18:06:41Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a481d81
Parents:
2f6ad06
Message:

Add async framework wrapper around as_area_create()

This is necessary because only the async framework can see the underlying
phone in struct async_sess.

Location:
uspace/lib/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    r2f6ad06 r101516d  
    116116#include <stdlib.h>
    117117#include <macros.h>
     118#include <as.h>
    118119#include "private/libc.h"
    119120
     
    33793380}
    33803381
     3382void *async_as_area_create(void *base, size_t size, unsigned int flags,
     3383    async_sess_t *pager)
     3384{
     3385        return as_area_create(base, size, flags, pager->phone);
     3386}
     3387
    33813388/** @}
    33823389 */
  • uspace/lib/c/include/as.h

    r2f6ad06 r101516d  
    3838#include <sys/types.h>
    3939#include <abi/mm/as.h>
    40 #include <task.h>
    4140#include <libarch/config.h>
    4241
  • uspace/lib/c/include/async.h

    r2f6ad06 r101516d  
    488488extern void async_remote_state_release_exchange(async_exch_t *);
    489489
     490extern void *async_as_area_create(void *, size_t, unsigned int, async_sess_t *);
     491
    490492#endif
    491493
Note: See TracChangeset for help on using the changeset viewer.