]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kboot: Implement getpid(2)
authorWarner Losh <imp@FreeBSD.org>
Thu, 30 Jun 2022 18:12:51 +0000 (12:12 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 15 Jul 2022 18:00:50 +0000 (12:00 -0600)
commit764780294f1df220174c1eb2208c0774d685d594
treeeaa2338cd222726baab23b83a32628a5338f62ae
parent76949f503f008b28865bd0fd026a550a3cb48619
kboot: Implement getpid(2)

Add host_getpid() so we can know if we're running as init(8) or not.  If
we are, we may chose to do early system setup / sanity operations.

Sponsored by: Netflix
stand/kboot/arch/amd64/syscall_nr.h
stand/kboot/arch/powerpc64/syscall_nr.h
stand/kboot/host_syscall.h
stand/kboot/host_syscalls.c