How are syscall functions defined?
- Reply: Pat Maddox: "Re: How are syscall functions defined?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Jul 2023 10:11:40 UTC
jail_attach is defined in syscalls.master [1] which generates a declaration in jail.h [2]. Try as I might, I can’t find any definition of that specific syscall function (or any other). I think the closest I’ve found is sys_jail_attach in kern_jail.c [3]. I suspect there’s some generation going on that defines jail_attach - but if that’s the case, I haven’t 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/syscalls.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/kern_jail.c#L2340