Sharing buffer between Linux kernel modules causing "Unable to handle kernel paging request at virtual address XXXXX"

StackOverflow https://stackoverflow.com/questions/23408796

문제

I have one kernel module which has declaration as char arr[100]; and exported it like, EXPORT_SYMBOL(arr);

In second module I am trying to use it as extern char *arr; and in read of this module when I try to snprintf(buffer,100,"%s\n",arr);

This line gives error like

Unable to handle kernel paging request at virtual address XXXXX"

What should be cause for this?

도움이 되었습니까?

해결책

My problem solved by taking extern char arr[100]; in second module.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top