Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3b3fcf36 in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2018-11-20T10:53:13Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
a615be0
Parents:
8be3230
git-author:
Jiri Svoboda <jiri@…> (2018-11-19 18:49:18)
git-committer:
Jiri Svoboda <jiri@…> (2018-11-20 10:53:13)
Message:

IPC share-in test using text and data segment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    r8be3230 r3b3fcf36  
    22292229}
    22302230
     2231sys_errno_t sys_as_area_get_info(uintptr_t address, as_area_info_t *dest)
     2232{
     2233        as_area_t *area;
     2234
     2235        mutex_lock(&AS->lock);
     2236        area = find_area_and_lock(AS, address);
     2237        if (area == NULL) {
     2238                mutex_unlock(&AS->lock);
     2239                return ENOENT;
     2240        }
     2241
     2242        dest->start_addr = area->base;
     2243        dest->size = P2SZ(area->pages);
     2244        dest->flags = area->flags;
     2245
     2246        mutex_unlock(&area->lock);
     2247        mutex_unlock(&AS->lock);
     2248        return EOK;
     2249}
     2250
    22312251sys_errno_t sys_as_area_destroy(uintptr_t address)
    22322252{
Note: See TracChangeset for help on using the changeset viewer.