Re: Error while building a kernel module with mkdir(2)

From: Rocky Hotas <rockyhotas_at_post.com>
Date: Tue, 19 Sep 2023 13:24:52 UTC
> Sent: Monday, September 18, 2023 at 11:38 PM
> From: "Yuri" <yuri@aetern.org>
> To: freebsd-hackers@freebsd.org
> Subject: Re: Error while building a kernel module with mkdir(2)
>
> That include is for userland that needs mkdir(2).  Your wrapper likely
> wants to override the in-kernel sys_mkdir() defined in <sys/sysproto.h>.

Yes, it works this way. Thank you so much!

Now, searching for sys_mkdir, I also found this post:

 <https://forums.freebsd.org/threads/link_elf_obj-symbol-mkdir-undefined.71374/>

with the same problem. The book is somewhat outdated.

Are such kernel functions documented somewhere? sys_mkdir(9) does not
exist. The only manpage I could find with `apropos syscall' is
SYSCALL_MODULE(9), but it's not exactly what I was looking for.


Rocky