Query: getbootfile
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETBOOTFILE(3) BSD Library Functions Manual GETBOOTFILE(3)NAMEgetbootfile -- get kernel boot file nameLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <paths.h> const char * getbootfile(void);DESCRIPTIONThe getbootfile() function retrieves the full pathname of the file from which the current kernel was loaded, and returns a static pointer to the name. A read/write interface to this information is available via the sysctl(3) MIB variable ``kern.bootfile''.RETURN VALUESIf the call succeeds a string giving the pathname is returned. If it fails, a null pointer is returned and an error code is placed in the global location errno.SEE ALSOsysctl(3)HISTORYThe getbootfile() function appeared in FreeBSD 2.0.BUGSIf the boot blocks have not been modified to pass this information into the kernel at boot time, the static string ``/boot/kernel/kernel'' is returned instead of the real boot file.BSDSeptember 23, 1994 BSD
Related Man Pages |
---|
sysctl.conf(5) - freebsd |
getvfsbyname(3) - freebsd |
kldconfig(8) - freebsd |
modfind(2) - opensolaris |
modfind(2) - linux |
Similar Topics in the Unix Linux Community |
---|
NTP synchronised problem in our Centos 7.6 node |