Changeset 2c577e0b in mainline for uspace/lib/c/generic/ipc/ns.c


Ignore:
Timestamp:
2011-01-29T11:29:35Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
64d2b10
Parents:
9c81703
Message:
  • implement service_realtime_share_in()
  • cstyle changes in time.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ipc/ns.c

    r9c81703 r2c577e0b  
    7979}
    8080
     81void *service_realtime_share_in(void)
     82{
     83        void *rtime = as_get_mappable_page(PAGE_SIZE);
     84        if (rtime == NULL)
     85                return NULL;
     86       
     87        int res = async_share_in_start_1_0(PHONE_NS, rtime, PAGE_SIZE,
     88            SERVICE_MEM_REALTIME);
     89        if (res != EOK) {
     90                as_area_destroy((void *) rtime);
     91                return NULL;
     92        }
     93       
     94        return rtime;
     95}
     96
    8197/** @}
    8298 */
Note: See TracChangeset for help on using the changeset viewer.