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

Function copy_from_user

components/drivers/pci/procfs.c:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36rt_inline void copy_from_user(void *to, const void *from, size_t size)
37{
38#ifdef RT_USING_LWP
39 if (!lwp_get_from_user(to, (void *)from, size))
40#endif
41 {
42 rt_memcpy(to, (void *)from, size);
43 }
44}
45
46static void pci_pm_runtime_get(struct rt_pci_device *pdev, rt_ubase_t *out_flags)
47{

Callers 3

pci_writeFunction · 0.85
terminate_vgliteFunction · 0.85
do_submitFunction · 0.85

Calls 2

lwp_get_from_userFunction · 0.85
rt_memcpyFunction · 0.85

Tested by

no test coverage detected