Hi, > now, i want to simplify the function according to the > following method, but i don't know wether there is some > potential risk. > 1. don't to allocates memory in kernel space for each parameter. > 2. sys_mount refer to the parameter through the memory > pointer passed directly. You can't refer to a user space memory directly. The reason being it could not be in memory at the time of the call (and the kernel cannot page fault). And thus the copy to kernel space is justified and needed. Thanks, Rajat -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ