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

Function lwp_fork_aspace

components/lwp/lwp_user_mm.c:218–228  ·  view source on GitHub ↗

fork the src_lwp->aspace in current */

Source from the content-addressed store, hash-verified

216
217/** fork the src_lwp->aspace in current */
218int lwp_fork_aspace(struct rt_lwp *dest_lwp, struct rt_lwp *src_lwp)
219{
220 int err;
221 err = rt_aspace_fork(&src_lwp->aspace, &dest_lwp->aspace);
222 if (!err)
223 {
224 /* do a explicit aspace switch if the page table is changed */
225 lwp_aspace_switch(rt_thread_self());
226 }
227 return err;
228}
229
230int lwp_unmap_user_phy(struct rt_lwp *lwp, void *va)
231{

Callers 1

_sys_forkFunction · 0.85

Calls 3

rt_aspace_forkFunction · 0.85
lwp_aspace_switchFunction · 0.85
rt_thread_selfFunction · 0.85

Tested by

no test coverage detected