MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / map

Function map

examples/utest/testcases/mm/test_synchronization.h:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static semaphore_t sem2[THREAD_CNT / 2];
28
29static void *map(void)
30{
31 int err;
32 int flags = MMF_PREFETCH;
33 size_t attr = MMU_MAP_K_RWCB;
34 void *vaddr = 0;
35 err =
36 rt_aspace_map(&rt_kernel_space, &vaddr, BUF_SIZE, attr, flags, &rt_mm_dummy_mapper, 0);
37 if (err)
38 uassert_true(0);
39 return vaddr;
40}
41
42static void unmap(void *buf)
43{

Callers 2

group1_entryFunction · 0.85
group2_entryFunction · 0.85

Calls 1

rt_aspace_mapFunction · 0.85

Tested by

no test coverage detected