#include <net/restricted_in_port.h> /* for restricted_in_port_init() */
#include <kern/assert.h> /* for assert() */
#include <sys/kern_overrides.h> /* for init_system_override() */
+#include <sys/lockf.h> /* for lf_init() */
#include <net/init.h>
__private_extern__ int bootarg_no_vnode_jetsam = 0;
#endif /* CONFIG_JETSAM && (DEVELOPMENT || DEBUG) */
+__private_extern__ int bootarg_no_vnode_drain = 0;
+
/*
* Prevent kernel-based ASLR from being used, for testing.
*/
bsd_init_kprintf("calling vfsinit\n");
vfsinit();
+ /* Initialize file locks. */
+ bsd_init_kprintf("calling lf_init\n");
+ lf_init();
+
#if CONFIG_PROC_UUID_POLICY
/* Initial proc_uuid_policy subsystem */
bsd_init_kprintf("calling proc_uuid_policy_init()\n");
}
#endif /* CONFIG_JETSAM && (DEVELOPMENT || DEBUG) */
+ if (PE_parse_boot_argn("-no_vnode_drain", namep, sizeof(namep))) {
+ bootarg_no_vnode_drain = 1;
+ }
#if CONFIG_EMBEDDED
/*