HyperNews Linux KHG 讨论页面

Feedback: 段错误可能的原因

论坛: Linux内核黑客指南
回复: Question 创建新系统调用时出现问题
回复: Question 系统调用返回“Bad Address”。为什么?
回复: Question 回复:返回值 (C.H.Gopinath)
日期: 1997年10月16日星期四 18:52:04 GMT
发件人: <未知>

I tried to implement the system call, the way you did. That is
passing 2 strings s1, s2 and finding out their lengths. It did 
give me segmentation fault.
     I even tried to just print the strings within sys_print_data () 
using printk() as well as sys_write(), it did the same thing. 
     The message it gave was that the kernel was unable to
do paging at virtual address xxxxx.. 
     I suppose there must be another way to pass strings to 
the system call, but I don't know at this point. If I do in the
future, I will let you know.

saurabh desai。