Reusing of struct uio in soo_read()

2025-03-12 Thread Peter Skvarka
Hello, I am using function soo_read() in kernel thread: struct uio my_uio; ...initializing my_uio while(...) { soo_recv(file_fd, NULL, &my_uio, NULL, 0); ... } I use it in a loop for receiving small messages. How to reuse struct uio after soo_recv() to receive next data again on the begin

Re: Reusing of struct uio in soo_read()

2025-03-12 Thread Mouse
> I am using function soo_read() in kernel thread: > [...] > I use it in a loop for receiving small messages. > How to reuse struct uio after soo_recv() to receive next data again > on the beginning of iovec.iov_base buffer ? (if possible) > Reseting members: [uio_resid, uio_iov.iovec.iov_len, ui