Date: Sat, 01 Jul 2023 03:11:40 -0700 From: "Pat Maddox" <pat@patmaddox.com> To: freebsd-hackers@freebsd.org Subject: How are syscall functions defined? Message-ID: <5f311275-e307-4e78-a479-c6d4e7f116d5@app.fastmail.com>
next in thread | raw e-mail | index | archive | help
jail_attach is defined in syscalls.master [1] which generates a declarat= ion in jail.h [2]. Try as I might, I can=E2=80=99t find any definition o= f that specific syscall function (or any other). I think the closest I=E2= =80=99ve found is sys_jail_attach in kern_jail.c [3]. I suspect there=E2= =80=99s some generation going on that defines jail_attach - but if that=E2= =80=99s the case, I haven=E2=80=99t been able to track it down. Can someone point me to how the C function gets defined? Thanks, Pat [1] https://github.com/freebsd/freebsd-src/blob/releng/13.2/sys/kern/sys= calls.master#L2307 [2] https://github.com/freebsd/freebsd-src/blob/releng/13.2/sys/sys/jail= .h#L119 [3] https://github.com/freebsd/freebsd-src/blob/releng/13.2/sys/kern/ker= n_jail.c#L2340
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5f311275-e307-4e78-a479-c6d4e7f116d5>