Re: Infinite loop with d_write_t

2023-03-19 Thread Goran Mekić
On Sun, Mar 19, 2023 at 12:32:53PM +0100, Yuri wrote: > Why are you using copyin() and not uiomove() in d_write entry? In short, I was following the book. > There's an example that looks like you are trying to do: > > https://docs.freebsd.org/en/books/arch-handbook/driverbasics/#driverbasics-char

Re: Infinite loop with d_write_t

2023-03-19 Thread Kyle Evans
On Sun, Mar 19, 2023 at 6:33 AM Yuri wrote: > > Goran Mekić wrote: > > Hello, > > > > I'm trying to assemble a minimal kernel module and user space program as > > a skeleton, and no matter what I do I get infinite loop. The code for > > kernel is > > https://github.com/mekanix/freebsd-project/blo

Re: Infinite loop with d_write_t

2023-03-19 Thread Yuri
Goran Mekić wrote: > Hello, > > I'm trying to assemble a minimal kernel module and user space program as > a skeleton, and no matter what I do I get infinite loop. The code for > kernel is > https://github.com/mekanix/freebsd-project/blob/master/kernel/main.c. > The way to test: > # make > # sudo

Infinite loop with d_write_t

2023-03-19 Thread Goran Mekić
Hello, I'm trying to assemble a minimal kernel module and user space program as a skeleton, and no matter what I do I get infinite loop. The code for kernel is https://github.com/mekanix/freebsd-project/blob/master/kernel/main.c. The way to test: # make # sudo kldload ./hello.ko # echo "something"