arjav1528 commented on PR #18712:
URL: https://github.com/apache/nuttx/pull/18712#issuecomment-4321255022

   > I don't like this much specific code for `CONFIG_BUILD_KERNEL`. Maybe 
better approach would be to implement something like `copy_to_user` and 
`copy_from_user`, similar to what Linux uses?
   
   @michallenc I agree that a generic copy_to_user/copy_from_user style could 
be useful longer term. but the repo does not appear to have that abstraction, 
and sendto/recvfrom fns already handle CONFIG_BUILD_KERNEL by bouncing in the 
kernel buffers. it seems consistent with those existing socket wrappers and 
avoids expanding the scope of this PR


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to