Modify user space from kernel.
    Adam Starak 
    starak.adam at gmail.com
       
    Fri Jul 29 13:11:28 UTC 2016
    
    
  
Hello!
My name is Adam. I participate in Google Summer of Code this year. I came
up with a big problem, which doesn't allow me to go further in my project.
I made a new syscall, which is going to retrieve sysctl data and put it
inside the nvlist. And here my problem is. I need to move somehow this data
(packed nvlist) into the user space. Is there any chance to pass data from
kernel to user space without knowing the size of it?
Right now, the implementation of __sysctl() function requests void pointer
and size in order to get data. If allocated memory is too low, it returns
ENOMEM and you need to realloc the data. I wanted to avoid this situation.
Best regards,
Adam Starak
    
    
More information about the freebsd-hackers
mailing list