Donny9 commented on PR #16431:
URL: https://github.com/apache/nuttx/pull/16431#issuecomment-2904143761

   > > > Why is fdcheck implemented in the kernel, the kernel should not have 
to care about such things. Shouldn't it be implemented at the user interface 
i.e. libc ?
   > > 
   > > 
   > > @pussuw The implementation of fdcheck originally resides in libc 
https://github.com/apache/nuttx/blob/889a26db1d229ee462bc8ea075c2330dc5f79b94/libs/libc/misc/lib_fdcheck.c
   > > But we need to perform the conversion from file descriptor (fd) to file 
structure pointer (filep) within the kernel, as this conversion cannot be done 
in user space. And, the parameter for system calls is an fd, nothing else, and 
the filep is also a kernel data structure.
   > 
   > Yes the problem here is that the data is in filep. After #16361 you could 
do this magic in userspace.
   
   @pussuw  #16361  would definitely be the best if we could cover this type of 
scenario. 
   However, the changes in this current Pull Request (PR) are quite extensive, 
so it's unlikely to be merged into the mainline quickly. There's a possibility 
of stability issues, so we should ensure its reliability through some testing. 
   Therefore, I will pick it up internally and conduct LTP (Linux Test Project) 
functional testing, 24-hour Monkey stress testing, as well as functional 
testing on multiple platforms, before approving it.  
   
   Therefore, our priority is to ensure that the current design is sound. You 
can continue to rework based on #16361 .


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to