What title is copy_from_user () declared in?

Can someone help me get the correct header files needed for the method copy_from_user?

I found several include headers that I need, but my compiler keeps saying that they were not found. I am running CentOS on my machine. I tried yuminstalling various kernel headers and development packages, but still no luck.

Is there a special segment that I need to add to my team gcc? Everything that I find on the Internet only tells me how to use this method, but not really how I can access it in the first place.

+5
source share
1 answer

, , copy_from_user . , :

#include <linux/uaccess.h>

: , Hello World Linux Kernel Module. , makefile ( obj-m).

+11

All Articles