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

Function copy_to_user

components/drivers/pci/procfs.c:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static struct proc_dentry *pci_proc_dentry;
25
26rt_inline void copy_to_user(void *to, void *from, size_t size)
27{
28#ifdef RT_USING_LWP
29 if (!lwp_put_to_user(to, from, size))
30#endif
31 {
32 rt_memcpy(to, from, size);
33 }
34}
35
36rt_inline void copy_from_user(void *to, const void *from, size_t size)
37{

Callers 3

pci_readFunction · 0.85
vg_lite_kernel.cFile · 0.85
terminate_vgliteFunction · 0.85

Calls 2

lwp_put_to_userFunction · 0.85
rt_memcpyFunction · 0.85

Tested by

no test coverage detected