Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2023 15:24:52 +0200
From:      Rocky Hotas <rockyhotas@post.com>
To:        Yuri <yuri@aetern.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Error while building a kernel module with mkdir(2)
Message-ID:  <trinity-1430389e-94e7-4bdc-91fa-80ee4d943391-1695129892117@3c-app-mailcom-lxa01>
In-Reply-To: <36d29d5c-43cd-4e77-9406-e786d08a79e2@aetern.org>
References:  <trinity-2c27b4d2-a301-466b-941e-2577e4886a49-1695071577376@3c-app-mailcom-lxa16> <36d29d5c-43cd-4e77-9406-e786d08a79e2@aetern.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.7=
1374/>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?trinity-1430389e-94e7-4bdc-91fa-80ee4d943391-1695129892117>