In keeping with style(9)'s recommendations on macros, use a ';'
after each SYSINIT() macro invocation. This makes a number of lightweight C parsers much happier with the FreeBSD kernel source, including cflow's prcc and lxr. MFC after: 1 month Discussed with: imp, rink
This commit is contained in:
parent
f48a417b24
commit
237fdd787b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177253
@ -409,7 +409,7 @@ madt_register(void *dummy __unused)
|
||||
apic_register_enumerator(&madt_enumerator);
|
||||
}
|
||||
SYSINIT(madt_register, SI_SUB_TUNABLES - 1, SI_ORDER_FIRST,
|
||||
madt_register, NULL)
|
||||
madt_register, NULL);
|
||||
|
||||
/*
|
||||
* Call the handler routine for each entry in the MADT table.
|
||||
@ -779,4 +779,4 @@ madt_set_ids(void *dummy)
|
||||
la->la_acpi_id);
|
||||
}
|
||||
}
|
||||
SYSINIT(madt_set_ids, SI_SUB_CPU, SI_ORDER_ANY, madt_set_ids, NULL)
|
||||
SYSINIT(madt_set_ids, SI_SUB_CPU, SI_ORDER_ANY, madt_set_ids, NULL);
|
||||
|
@ -510,7 +510,7 @@ intr_init(void *dummy __unused)
|
||||
sx_init(&intr_table_lock, "intr sources");
|
||||
mtx_init(&intrcnt_lock, "intrcnt", NULL, MTX_SPIN);
|
||||
}
|
||||
SYSINIT(intr_init, SI_SUB_INTR, SI_ORDER_FIRST, intr_init, NULL)
|
||||
SYSINIT(intr_init, SI_SUB_INTR, SI_ORDER_FIRST, intr_init, NULL);
|
||||
|
||||
#ifndef DEV_ATPIC
|
||||
/* Initialize the two 8259A's to a known-good shutdown state. */
|
||||
@ -642,5 +642,6 @@ intr_shuffle_irqs(void *arg __unused)
|
||||
}
|
||||
sx_xunlock(&intr_table_lock);
|
||||
}
|
||||
SYSINIT(intr_shuffle_irqs, SI_SUB_SMP, SI_ORDER_SECOND, intr_shuffle_irqs, NULL)
|
||||
SYSINIT(intr_shuffle_irqs, SI_SUB_SMP, SI_ORDER_SECOND, intr_shuffle_irqs,
|
||||
NULL);
|
||||
#endif
|
||||
|
@ -1039,7 +1039,7 @@ apic_init(void *dummy __unused)
|
||||
printf("%s: Failed to probe CPUs: returned %d\n",
|
||||
best_enum->apic_name, retval);
|
||||
}
|
||||
SYSINIT(apic_init, SI_SUB_TUNABLES - 1, SI_ORDER_SECOND, apic_init, NULL)
|
||||
SYSINIT(apic_init, SI_SUB_TUNABLES - 1, SI_ORDER_SECOND, apic_init, NULL);
|
||||
|
||||
/*
|
||||
* Setup the local APIC. We have to do this prior to starting up the APs
|
||||
@ -1057,7 +1057,8 @@ apic_setup_local(void *dummy __unused)
|
||||
printf("%s: Failed to setup the local APIC: returned %d\n",
|
||||
best_enum->apic_name, retval);
|
||||
}
|
||||
SYSINIT(apic_setup_local, SI_SUB_CPU, SI_ORDER_SECOND, apic_setup_local, NULL)
|
||||
SYSINIT(apic_setup_local, SI_SUB_CPU, SI_ORDER_SECOND, apic_setup_local,
|
||||
NULL);
|
||||
|
||||
/*
|
||||
* Setup the I/O APICs.
|
||||
@ -1086,7 +1087,7 @@ apic_setup_io(void *dummy __unused)
|
||||
/* Enable the MSI "pic". */
|
||||
msi_init();
|
||||
}
|
||||
SYSINIT(apic_setup_io, SI_SUB_INTR, SI_ORDER_SECOND, apic_setup_io, NULL)
|
||||
SYSINIT(apic_setup_io, SI_SUB_INTR, SI_ORDER_SECOND, apic_setup_io, NULL);
|
||||
|
||||
#ifdef SMP
|
||||
/*
|
||||
|
@ -149,7 +149,7 @@ extern void panicifcpuunsupported(void);
|
||||
static void cpu_startup(void *);
|
||||
static void get_fpcontext(struct thread *td, mcontext_t *mcp);
|
||||
static int set_fpcontext(struct thread *td, const mcontext_t *mcp);
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
|
||||
|
||||
#ifdef DDB
|
||||
extern vm_offset_t ksym_start, ksym_end;
|
||||
|
@ -381,7 +381,7 @@ mptable_register(void *dummy __unused)
|
||||
apic_register_enumerator(&mptable_enumerator);
|
||||
}
|
||||
SYSINIT(mptable_register, SI_SUB_TUNABLES - 1, SI_ORDER_FIRST,
|
||||
mptable_register, NULL)
|
||||
mptable_register, NULL);
|
||||
|
||||
/*
|
||||
* Call the handler routine for each entry in the MP config table.
|
||||
|
@ -499,7 +499,7 @@ atpic_init(void *dummy __unused)
|
||||
intr_register_source(&ai->at_intsrc);
|
||||
}
|
||||
}
|
||||
SYSINIT(atpic_init, SI_SUB_INTR, SI_ORDER_SECOND + 1, atpic_init, NULL)
|
||||
SYSINIT(atpic_init, SI_SUB_INTR, SI_ORDER_SECOND + 1, atpic_init, NULL);
|
||||
|
||||
void
|
||||
atpic_handle_intr(u_int vector, struct trapframe *frame)
|
||||
|
@ -308,7 +308,7 @@ cpu_startup(void *dummy)
|
||||
#endif
|
||||
}
|
||||
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
|
||||
|
||||
/* Get current clock frequency for the given cpu id. */
|
||||
int
|
||||
|
@ -77,7 +77,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef ARM_USE_SMALL_ALLOC
|
||||
static void sf_buf_init(void *arg);
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL);
|
||||
|
||||
LIST_HEAD(sf_head, sf_buf);
|
||||
|
||||
|
@ -359,5 +359,5 @@ callb_unlock_table(void)
|
||||
mutex_exit(&ct->ct_lock);
|
||||
}
|
||||
|
||||
SYSINIT(sol_callb, SI_SUB_DRIVERS, SI_ORDER_FIRST, callb_init, NULL)
|
||||
SYSINIT(sol_callb, SI_SUB_DRIVERS, SI_ORDER_FIRST, callb_init, NULL);
|
||||
SYSUNINIT(sol_callb, SI_SUB_DRIVERS, SI_ORDER_FIRST, callb_fini, NULL);
|
||||
|
@ -1016,5 +1016,5 @@ taskq_destroy(taskq_t *tq)
|
||||
kmem_cache_free(taskq_cache, tq);
|
||||
}
|
||||
|
||||
SYSINIT(sol_taskq, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, taskq_init, NULL)
|
||||
SYSINIT(sol_taskq, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, taskq_init, NULL);
|
||||
SYSUNINIT(sol_taskq, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, taskq_fini, NULL);
|
||||
|
@ -359,5 +359,5 @@ callb_unlock_table(void)
|
||||
mutex_exit(&ct->ct_lock);
|
||||
}
|
||||
|
||||
SYSINIT(sol_callb, SI_SUB_DRIVERS, SI_ORDER_FIRST, callb_init, NULL)
|
||||
SYSINIT(sol_callb, SI_SUB_DRIVERS, SI_ORDER_FIRST, callb_init, NULL);
|
||||
SYSUNINIT(sol_callb, SI_SUB_DRIVERS, SI_ORDER_FIRST, callb_fini, NULL);
|
||||
|
@ -1016,5 +1016,5 @@ taskq_destroy(taskq_t *tq)
|
||||
kmem_cache_free(taskq_cache, tq);
|
||||
}
|
||||
|
||||
SYSINIT(sol_taskq, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, taskq_init, NULL)
|
||||
SYSINIT(sol_taskq, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, taskq_init, NULL);
|
||||
SYSUNINIT(sol_taskq, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, taskq_fini, NULL);
|
||||
|
@ -105,7 +105,7 @@ cn_drvinit(void *unused)
|
||||
}
|
||||
}
|
||||
|
||||
SYSINIT(cndev, SI_SUB_CONFIGURE, SI_ORDER_MIDDLE, cn_drvinit, NULL)
|
||||
SYSINIT(cndev, SI_SUB_CONFIGURE, SI_ORDER_MIDDLE, cn_drvinit, NULL);
|
||||
|
||||
static int stdin;
|
||||
static int stdout;
|
||||
|
@ -245,7 +245,7 @@ sm_attach_mouse(void *unused)
|
||||
/* sysmouse doesn't have scr_stat */
|
||||
}
|
||||
|
||||
SYSINIT(sysmouse, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, sm_attach_mouse, NULL)
|
||||
SYSINIT(sysmouse, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, sm_attach_mouse, NULL);
|
||||
|
||||
int
|
||||
sysmouse_event(mouse_info_t *info)
|
||||
|
@ -322,7 +322,7 @@ acpi_alloc_wakeup_handler(void)
|
||||
acpi_wakeaddr = (vm_offset_t)wakeaddr;
|
||||
}
|
||||
|
||||
SYSINIT(acpiwakeup, SI_SUB_KMEM, SI_ORDER_ANY, acpi_alloc_wakeup_handler, 0)
|
||||
SYSINIT(acpiwakeup, SI_SUB_KMEM, SI_ORDER_ANY, acpi_alloc_wakeup_handler, 0);
|
||||
|
||||
static void
|
||||
acpi_realmodeinst(void *arg, bus_dma_segment_t *segs, int nsegs, int error)
|
||||
|
@ -408,7 +408,7 @@ madt_register(void *dummy __unused)
|
||||
|
||||
apic_register_enumerator(&madt_enumerator);
|
||||
}
|
||||
SYSINIT(madt_register, SI_SUB_CPU - 1, SI_ORDER_SECOND, madt_register, NULL)
|
||||
SYSINIT(madt_register, SI_SUB_CPU - 1, SI_ORDER_SECOND, madt_register, NULL);
|
||||
|
||||
/*
|
||||
* Call the handler routine for each entry in the MADT table.
|
||||
@ -778,4 +778,4 @@ madt_set_ids(void *dummy)
|
||||
la->la_acpi_id);
|
||||
}
|
||||
}
|
||||
SYSINIT(madt_set_ids, SI_SUB_CPU, SI_ORDER_ANY, madt_set_ids, NULL)
|
||||
SYSINIT(madt_set_ids, SI_SUB_CPU, SI_ORDER_ANY, madt_set_ids, NULL);
|
||||
|
@ -508,7 +508,7 @@ intr_init(void *dummy __unused)
|
||||
sx_init(&intr_table_lock, "intr sources");
|
||||
mtx_init(&intrcnt_lock, "intrcnt", NULL, MTX_SPIN);
|
||||
}
|
||||
SYSINIT(intr_init, SI_SUB_INTR, SI_ORDER_FIRST, intr_init, NULL)
|
||||
SYSINIT(intr_init, SI_SUB_INTR, SI_ORDER_FIRST, intr_init, NULL);
|
||||
|
||||
#ifdef DDB
|
||||
/*
|
||||
@ -618,5 +618,6 @@ intr_shuffle_irqs(void *arg __unused)
|
||||
}
|
||||
sx_xunlock(&intr_table_lock);
|
||||
}
|
||||
SYSINIT(intr_shuffle_irqs, SI_SUB_SMP, SI_ORDER_SECOND, intr_shuffle_irqs, NULL)
|
||||
SYSINIT(intr_shuffle_irqs, SI_SUB_SMP, SI_ORDER_SECOND, intr_shuffle_irqs,
|
||||
NULL);
|
||||
#endif
|
||||
|
@ -1065,7 +1065,7 @@ apic_init(void *dummy __unused)
|
||||
printf("%s: Failed to setup the local APIC: returned %d\n",
|
||||
best_enum->apic_name, retval);
|
||||
}
|
||||
SYSINIT(apic_init, SI_SUB_CPU, SI_ORDER_SECOND, apic_init, NULL)
|
||||
SYSINIT(apic_init, SI_SUB_CPU, SI_ORDER_SECOND, apic_init, NULL);
|
||||
|
||||
/*
|
||||
* Setup the I/O APICs.
|
||||
@ -1094,7 +1094,7 @@ apic_setup_io(void *dummy __unused)
|
||||
/* Enable the MSI "pic". */
|
||||
msi_init();
|
||||
}
|
||||
SYSINIT(apic_setup_io, SI_SUB_INTR, SI_ORDER_SECOND, apic_setup_io, NULL)
|
||||
SYSINIT(apic_setup_io, SI_SUB_INTR, SI_ORDER_SECOND, apic_setup_io, NULL);
|
||||
|
||||
#ifdef SMP
|
||||
/*
|
||||
|
@ -168,7 +168,7 @@ static int set_fpcontext(struct thread *td, const mcontext_t *mcp);
|
||||
static void set_fpregs_xmm(struct save87 *, struct savexmm *);
|
||||
static void fill_fpregs_xmm(struct savexmm *, struct save87 *);
|
||||
#endif /* CPU_ENABLE_SSE */
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
|
||||
|
||||
#ifdef DDB
|
||||
extern vm_offset_t ksym_start, ksym_end;
|
||||
@ -2433,7 +2433,7 @@ spinlock_exit(void)
|
||||
|
||||
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
|
||||
static void f00f_hack(void *unused);
|
||||
SYSINIT(f00f_hack, SI_SUB_INTRINSIC, SI_ORDER_FIRST, f00f_hack, NULL)
|
||||
SYSINIT(f00f_hack, SI_SUB_INTRINSIC, SI_ORDER_FIRST, f00f_hack, NULL);
|
||||
|
||||
static void
|
||||
f00f_hack(void *unused)
|
||||
|
@ -1499,5 +1499,5 @@ mp_ipi_intrcnt(void *dummy)
|
||||
intrcnt_add(buf, &ipi_lazypmap_counts[i]);
|
||||
}
|
||||
}
|
||||
SYSINIT(mp_ipi_intrcnt, SI_SUB_INTR, SI_ORDER_MIDDLE, mp_ipi_intrcnt, NULL)
|
||||
SYSINIT(mp_ipi_intrcnt, SI_SUB_INTR, SI_ORDER_MIDDLE, mp_ipi_intrcnt, NULL);
|
||||
#endif
|
||||
|
@ -386,7 +386,7 @@ mptable_register(void *dummy __unused)
|
||||
apic_register_enumerator(&mptable_enumerator);
|
||||
}
|
||||
SYSINIT(mptable_register, SI_SUB_CPU - 1, SI_ORDER_FIRST, mptable_register,
|
||||
NULL)
|
||||
NULL);
|
||||
|
||||
/*
|
||||
* Call the handler routine for each entry in the MP config table.
|
||||
|
@ -109,7 +109,7 @@ static u_int cpu_reset_proxyid;
|
||||
static volatile u_int cpu_reset_proxy_active;
|
||||
#endif
|
||||
static void sf_buf_init(void *arg);
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL);
|
||||
|
||||
LIST_HEAD(sf_head, sf_buf);
|
||||
|
||||
|
@ -563,7 +563,7 @@ atpic_init(void *dummy __unused)
|
||||
intr_register_source(&ai->at_intsrc);
|
||||
}
|
||||
}
|
||||
SYSINIT(atpic_init, SI_SUB_INTR, SI_ORDER_SECOND + 1, atpic_init, NULL)
|
||||
SYSINIT(atpic_init, SI_SUB_INTR, SI_ORDER_SECOND + 1, atpic_init, NULL);
|
||||
|
||||
void
|
||||
atpic_handle_intr(u_int vector, struct trapframe *frame)
|
||||
|
@ -82,4 +82,4 @@ xbox_init(void)
|
||||
* This must be called before the drivers, as the if_nve(4) driver will fail
|
||||
* if we do not do this in advance.
|
||||
*/
|
||||
SYSINIT(xbox, SI_SUB_DRIVERS, SI_ORDER_FIRST, xbox_init, NULL)
|
||||
SYSINIT(xbox, SI_SUB_DRIVERS, SI_ORDER_FIRST, xbox_init, NULL);
|
||||
|
@ -140,7 +140,7 @@ extern vm_offset_t ksym_start, ksym_end;
|
||||
#endif
|
||||
|
||||
static void cpu_startup(void *);
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
|
||||
|
||||
struct msgbuf *msgbufp=0;
|
||||
|
||||
|
@ -196,7 +196,7 @@ ssc_drvinit(void *unused)
|
||||
ssccreate(-1);
|
||||
}
|
||||
|
||||
SYSINIT(sscdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE, ssc_drvinit,NULL)
|
||||
SYSINIT(sscdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE, ssc_drvinit,NULL);
|
||||
|
||||
static void
|
||||
ssc_takeroot(void *junk)
|
||||
|
@ -109,7 +109,7 @@ SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0, "");
|
||||
* symbol is not undefined. A sybsystem ID of SI_SUB_DUMMY is never
|
||||
* executed.
|
||||
*/
|
||||
SYSINIT(placeholder, SI_SUB_DUMMY, SI_ORDER_ANY, NULL, NULL)
|
||||
SYSINIT(placeholder, SI_SUB_DUMMY, SI_ORDER_ANY, NULL, NULL);
|
||||
|
||||
/*
|
||||
* The sysinit table itself. Items are checked off as the are run.
|
||||
@ -288,26 +288,28 @@ print_caddr_t(void *data __unused)
|
||||
{
|
||||
printf("%s", (char *)data);
|
||||
}
|
||||
SYSINIT(announce, SI_SUB_COPYRIGHT, SI_ORDER_FIRST, print_caddr_t, copyright)
|
||||
SYSINIT(trademark, SI_SUB_COPYRIGHT, SI_ORDER_SECOND, print_caddr_t, trademark)
|
||||
SYSINIT(version, SI_SUB_COPYRIGHT, SI_ORDER_THIRD, print_caddr_t, version)
|
||||
SYSINIT(announce, SI_SUB_COPYRIGHT, SI_ORDER_FIRST, print_caddr_t,
|
||||
copyright);
|
||||
SYSINIT(trademark, SI_SUB_COPYRIGHT, SI_ORDER_SECOND, print_caddr_t,
|
||||
trademark);
|
||||
SYSINIT(version, SI_SUB_COPYRIGHT, SI_ORDER_THIRD, print_caddr_t, version);
|
||||
|
||||
#ifdef WITNESS
|
||||
static char wit_warn[] =
|
||||
"WARNING: WITNESS option enabled, expect reduced performance.\n";
|
||||
SYSINIT(witwarn, SI_SUB_COPYRIGHT, SI_ORDER_THIRD + 1,
|
||||
print_caddr_t, wit_warn)
|
||||
print_caddr_t, wit_warn);
|
||||
SYSINIT(witwarn2, SI_SUB_RUN_SCHEDULER, SI_ORDER_THIRD + 1,
|
||||
print_caddr_t, wit_warn)
|
||||
print_caddr_t, wit_warn);
|
||||
#endif
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
static char diag_warn[] =
|
||||
"WARNING: DIAGNOSTIC option enabled, expect reduced performance.\n";
|
||||
SYSINIT(diagwarn, SI_SUB_COPYRIGHT, SI_ORDER_THIRD + 2,
|
||||
print_caddr_t, diag_warn)
|
||||
print_caddr_t, diag_warn);
|
||||
SYSINIT(diagwarn2, SI_SUB_RUN_SCHEDULER, SI_ORDER_THIRD + 2,
|
||||
print_caddr_t, diag_warn)
|
||||
print_caddr_t, diag_warn);
|
||||
#endif
|
||||
|
||||
static void
|
||||
@ -317,7 +319,7 @@ set_boot_verbose(void *data __unused)
|
||||
if (boothowto & RB_VERBOSE)
|
||||
bootverbose++;
|
||||
}
|
||||
SYSINIT(boot_verbose, SI_SUB_TUNABLES, SI_ORDER_ANY, set_boot_verbose, NULL)
|
||||
SYSINIT(boot_verbose, SI_SUB_TUNABLES, SI_ORDER_ANY, set_boot_verbose, NULL);
|
||||
|
||||
struct sysentvec null_sysvec = {
|
||||
0,
|
||||
@ -507,7 +509,7 @@ proc0_init(void *dummy __unused)
|
||||
*/
|
||||
(void)chgproccnt(p->p_ucred->cr_ruidinfo, 1, 0);
|
||||
}
|
||||
SYSINIT(p0init, SI_SUB_INTRINSIC, SI_ORDER_FIRST, proc0_init, NULL)
|
||||
SYSINIT(p0init, SI_SUB_INTRINSIC, SI_ORDER_FIRST, proc0_init, NULL);
|
||||
|
||||
/* ARGSUSED*/
|
||||
static void
|
||||
@ -546,7 +548,7 @@ proc0_post(void *dummy __unused)
|
||||
nanotime(&ts);
|
||||
srandom(ts.tv_sec ^ ts.tv_nsec);
|
||||
}
|
||||
SYSINIT(p0post, SI_SUB_INTRINSIC_POST, SI_ORDER_FIRST, proc0_post, NULL)
|
||||
SYSINIT(p0post, SI_SUB_INTRINSIC_POST, SI_ORDER_FIRST, proc0_post, NULL);
|
||||
|
||||
/*
|
||||
***************************************************************************
|
||||
@ -744,7 +746,7 @@ create_init(const void *udata __unused)
|
||||
cred_update_thread(FIRST_THREAD_IN_PROC(initproc));
|
||||
cpu_set_fork_handler(FIRST_THREAD_IN_PROC(initproc), start_init, NULL);
|
||||
}
|
||||
SYSINIT(init, SI_SUB_CREATE_INIT, SI_ORDER_FIRST, create_init, NULL)
|
||||
SYSINIT(init, SI_SUB_CREATE_INIT, SI_ORDER_FIRST, create_init, NULL);
|
||||
|
||||
/*
|
||||
* Make it runnable now.
|
||||
@ -760,4 +762,4 @@ kick_init(const void *udata __unused)
|
||||
sched_add(td, SRQ_BORING);
|
||||
thread_unlock(td);
|
||||
}
|
||||
SYSINIT(kickinit, SI_SUB_KTHREAD_INIT, SI_ORDER_FIRST, kick_init, NULL)
|
||||
SYSINIT(kickinit, SI_SUB_KTHREAD_INIT, SI_ORDER_FIRST, kick_init, NULL);
|
||||
|
@ -327,8 +327,8 @@ static struct kproc_desc ald_kp = {
|
||||
&ald_proc
|
||||
};
|
||||
|
||||
SYSINIT(aldthread, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &ald_kp)
|
||||
SYSINIT(ald, SI_SUB_LOCK, SI_ORDER_ANY, ald_startup, NULL)
|
||||
SYSINIT(aldthread, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &ald_kp);
|
||||
SYSINIT(ald, SI_SUB_LOCK, SI_ORDER_ANY, ald_startup, NULL);
|
||||
|
||||
|
||||
/* User visible queue functions */
|
||||
|
@ -79,7 +79,7 @@ extern void hardclock_device_poll(void);
|
||||
#endif /* DEVICE_POLLING */
|
||||
|
||||
static void initclocks(void *dummy);
|
||||
SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
|
||||
SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL);
|
||||
|
||||
/* Spin-lock protecting profiling statistics. */
|
||||
static struct mtx time_lock;
|
||||
|
@ -2850,7 +2850,7 @@ filelistinit(void *dummy)
|
||||
mtx_init(&sigio_lock, "sigio lock", NULL, MTX_DEF);
|
||||
mtx_init(&fdesc_mtx, "fdesc", NULL, MTX_DEF);
|
||||
}
|
||||
SYSINIT(select, SI_SUB_EVENTHANDLER+1, SI_ORDER_MIDDLE, filelistinit, NULL)
|
||||
SYSINIT(select, SI_SUB_EVENTHANDLER+1, SI_ORDER_MIDDLE, filelistinit, NULL);
|
||||
|
||||
/*-------------------------------------------------------------------*/
|
||||
|
||||
@ -2965,4 +2965,4 @@ fildesc_drvinit(void *unused)
|
||||
make_dev_alias(dev, "stderr");
|
||||
}
|
||||
|
||||
SYSINIT(fildescdev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, fildesc_drvinit, NULL)
|
||||
SYSINIT(fildescdev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, fildesc_drvinit, NULL);
|
||||
|
@ -1922,7 +1922,7 @@ knote_init(void)
|
||||
knote_zone = uma_zcreate("KNOTE", sizeof(struct knote), NULL, NULL,
|
||||
NULL, NULL, UMA_ALIGN_PTR, 0);
|
||||
}
|
||||
SYSINIT(knote, SI_SUB_PSEUDO, SI_ORDER_ANY, knote_init, NULL)
|
||||
SYSINIT(knote, SI_SUB_PSEUDO, SI_ORDER_ANY, knote_init, NULL);
|
||||
|
||||
static struct knote *
|
||||
knote_alloc(int waitok)
|
||||
|
@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
|
||||
#endif
|
||||
|
||||
static void idle_setup(void *dummy);
|
||||
SYSINIT(idle_setup, SI_SUB_SCHED_IDLE, SI_ORDER_FIRST, idle_setup, NULL)
|
||||
SYSINIT(idle_setup, SI_SUB_SCHED_IDLE, SI_ORDER_FIRST, idle_setup, NULL);
|
||||
|
||||
/*
|
||||
* Set up per-cpu idle process contexts. The AP's shouldn't be running or
|
||||
|
@ -1600,7 +1600,8 @@ start_softintr(void *dummy)
|
||||
p->p_flag |= P_NOLOAD;
|
||||
PROC_UNLOCK(p);
|
||||
}
|
||||
SYSINIT(start_softintr, SI_SUB_SOFTINTR, SI_ORDER_FIRST, start_softintr, NULL)
|
||||
SYSINIT(start_softintr, SI_SUB_SOFTINTR, SI_ORDER_FIRST, start_softintr,
|
||||
NULL);
|
||||
|
||||
/*
|
||||
* Sysctls used by systat and others: hw.intrnames and hw.intrcnt.
|
||||
|
@ -162,7 +162,7 @@ linker_init(void *arg)
|
||||
TAILQ_INIT(&linker_files);
|
||||
}
|
||||
|
||||
SYSINIT(linker, SI_SUB_KLD, SI_ORDER_FIRST, linker_init, 0)
|
||||
SYSINIT(linker, SI_SUB_KLD, SI_ORDER_FIRST, linker_init, 0);
|
||||
|
||||
static void
|
||||
linker_stop_class_add(void *arg)
|
||||
@ -171,7 +171,7 @@ linker_stop_class_add(void *arg)
|
||||
linker_no_more_classes = 1;
|
||||
}
|
||||
|
||||
SYSINIT(linker_class, SI_SUB_KLD, SI_ORDER_ANY, linker_stop_class_add, NULL)
|
||||
SYSINIT(linker_class, SI_SUB_KLD, SI_ORDER_ANY, linker_stop_class_add, NULL);
|
||||
|
||||
int
|
||||
linker_add_class(linker_class_t lc)
|
||||
@ -363,7 +363,8 @@ linker_init_kernel_modules(void)
|
||||
linker_file_register_modules(linker_kernel_file);
|
||||
}
|
||||
|
||||
SYSINIT(linker_kernel, SI_SUB_KLD, SI_ORDER_ANY, linker_init_kernel_modules, 0)
|
||||
SYSINIT(linker_kernel, SI_SUB_KLD, SI_ORDER_ANY, linker_init_kernel_modules,
|
||||
0);
|
||||
|
||||
static int
|
||||
linker_load_file(const char *filename, linker_file_t *result)
|
||||
@ -1559,7 +1560,7 @@ linker_preload(void *arg)
|
||||
/* woohoo! we made it! */
|
||||
}
|
||||
|
||||
SYSINIT(preload, SI_SUB_KLD, SI_ORDER_MIDDLE, linker_preload, 0)
|
||||
SYSINIT(preload, SI_SUB_KLD, SI_ORDER_MIDDLE, linker_preload, 0);
|
||||
|
||||
/*
|
||||
* Search for a not-loaded module by name.
|
||||
|
@ -107,7 +107,7 @@ MALLOC_DEFINE(M_IP6OPT, "ip6opt", "IPv6 options");
|
||||
MALLOC_DEFINE(M_IP6NDP, "ip6ndp", "IPv6 Neighbor Discovery");
|
||||
|
||||
static void kmeminit(void *);
|
||||
SYSINIT(kmem, SI_SUB_KMEM, SI_ORDER_FIRST, kmeminit, NULL)
|
||||
SYSINIT(kmem, SI_SUB_KMEM, SI_ORDER_FIRST, kmeminit, NULL);
|
||||
|
||||
static MALLOC_DEFINE(M_FREE, "free", "should be on free list");
|
||||
|
||||
|
@ -238,7 +238,7 @@ CTASSERT((((MSIZE - 1) ^ MSIZE) + 1) >> 1 == MSIZE);
|
||||
/*
|
||||
* Initialize FreeBSD Network buffer allocation.
|
||||
*/
|
||||
SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbuf_init, NULL)
|
||||
SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbuf_init, NULL);
|
||||
static void
|
||||
mbuf_init(void *dummy)
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ module_init(void *arg)
|
||||
SHUTDOWN_PRI_DEFAULT);
|
||||
}
|
||||
|
||||
SYSINIT(module, SI_SUB_KLD, SI_ORDER_FIRST, module_init, 0)
|
||||
SYSINIT(module, SI_SUB_KLD, SI_ORDER_FIRST, module_init, 0);
|
||||
|
||||
static void
|
||||
module_shutdown(void *arg1, int arg2)
|
||||
|
@ -630,7 +630,7 @@ ntp_init()
|
||||
#endif /* PPS_SYNC */
|
||||
}
|
||||
|
||||
SYSINIT(ntpclocks, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, ntp_init, NULL)
|
||||
SYSINIT(ntpclocks, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, ntp_init, NULL);
|
||||
|
||||
/*
|
||||
* hardupdate() - local clock update
|
||||
|
@ -267,7 +267,7 @@ init_device_poll(void)
|
||||
netisr_register(NETISR_POLLMORE, (netisr_t *)netisr_pollmore, NULL,
|
||||
NETISR_MPSAFE);
|
||||
}
|
||||
SYSINIT(device_poll, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, init_device_poll, NULL)
|
||||
SYSINIT(device_poll, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, init_device_poll, NULL);
|
||||
|
||||
|
||||
/*
|
||||
@ -593,4 +593,5 @@ static struct kproc_desc idlepoll_kp = {
|
||||
poll_idle,
|
||||
&idlepoll
|
||||
};
|
||||
SYSINIT(idlepoll, SI_SUB_KTHREAD_VM, SI_ORDER_ANY, kproc_start, &idlepoll_kp)
|
||||
SYSINIT(idlepoll, SI_SUB_KTHREAD_VM, SI_ORDER_ANY, kproc_start,
|
||||
&idlepoll_kp);
|
||||
|
@ -150,7 +150,7 @@ shutdown_conf(void *unused)
|
||||
SHUTDOWN_PRI_LAST + 200);
|
||||
}
|
||||
|
||||
SYSINIT(shutdown_conf, SI_SUB_INTRINSIC, SI_ORDER_ANY, shutdown_conf, NULL)
|
||||
SYSINIT(shutdown_conf, SI_SUB_INTRINSIC, SI_ORDER_ANY, shutdown_conf, NULL);
|
||||
|
||||
/*
|
||||
* The system call that results in a reboot.
|
||||
|
@ -288,7 +288,7 @@ printf_caddr_t(void *data)
|
||||
static char preempt_warning[] =
|
||||
"WARNING: Kernel preemption is disabled, expect reduced performance.\n";
|
||||
SYSINIT(preempt_warning, SI_SUB_COPYRIGHT, SI_ORDER_ANY, printf_caddr_t,
|
||||
preempt_warning)
|
||||
preempt_warning);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -65,7 +65,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <machine/cpu.h>
|
||||
|
||||
static void synch_setup(void *dummy);
|
||||
SYSINIT(synch_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, synch_setup, NULL)
|
||||
SYSINIT(synch_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, synch_setup,
|
||||
NULL);
|
||||
|
||||
int hogticks;
|
||||
int lbolt;
|
||||
|
@ -833,7 +833,7 @@ inittimecounter(void *dummy)
|
||||
(void)timecounter->tc_get_timecount(timecounter);
|
||||
}
|
||||
|
||||
SYSINIT(timecounter, SI_SUB_CLOCKS, SI_ORDER_SECOND, inittimecounter, NULL)
|
||||
SYSINIT(timecounter, SI_SUB_CLOCKS, SI_ORDER_SECOND, inittimecounter, NULL);
|
||||
|
||||
/* Cpu tick handling -------------------------------------------------*/
|
||||
|
||||
|
@ -127,8 +127,9 @@ static struct kproc_desc sched_kp = {
|
||||
schedcpu_thread,
|
||||
NULL
|
||||
};
|
||||
SYSINIT(schedcpu, SI_SUB_RUN_SCHEDULER, SI_ORDER_FIRST, kproc_start, &sched_kp)
|
||||
SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL)
|
||||
SYSINIT(schedcpu, SI_SUB_RUN_SCHEDULER, SI_ORDER_FIRST, kproc_start,
|
||||
&sched_kp);
|
||||
SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL);
|
||||
|
||||
/*
|
||||
* Global run queue.
|
||||
|
@ -284,10 +284,11 @@ static struct mtx *sched_switch_migrate(struct tdq *, struct thread *, int);
|
||||
#endif
|
||||
|
||||
static void sched_setup(void *dummy);
|
||||
SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL)
|
||||
SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL);
|
||||
|
||||
static void sched_initticks(void *dummy);
|
||||
SYSINIT(sched_initticks, SI_SUB_CLOCKS, SI_ORDER_THIRD, sched_initticks, NULL)
|
||||
SYSINIT(sched_initticks, SI_SUB_CLOCKS, SI_ORDER_THIRD, sched_initticks,
|
||||
NULL);
|
||||
|
||||
/*
|
||||
* Print the threads waiting on a run-queue.
|
||||
|
@ -79,7 +79,7 @@ run_interrupt_driven_config_hooks(dummy)
|
||||
mtx_unlock(&intr_config_hook_lock);
|
||||
}
|
||||
SYSINIT(intr_config_hooks, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST,
|
||||
run_interrupt_driven_config_hooks, NULL)
|
||||
run_interrupt_driven_config_hooks, NULL);
|
||||
|
||||
/*
|
||||
* Register a hook that will be called after "cold"
|
||||
|
@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/clist.h>
|
||||
|
||||
static void clist_init(void *);
|
||||
SYSINIT(clist, SI_SUB_CLIST, SI_ORDER_FIRST, clist_init, NULL)
|
||||
SYSINIT(clist, SI_SUB_CLIST, SI_ORDER_FIRST, clist_init, NULL);
|
||||
|
||||
static struct cblock *cfreelist = 0;
|
||||
int cfreecount = 0;
|
||||
|
@ -62,7 +62,7 @@ eventhandler_init(void *dummy __unused)
|
||||
atomic_store_rel_int(&eventhandler_lists_initted, 1);
|
||||
}
|
||||
SYSINIT(eventhandlers, SI_SUB_EVENTHANDLER, SI_ORDER_FIRST, eventhandler_init,
|
||||
NULL)
|
||||
NULL);
|
||||
|
||||
/*
|
||||
* Insertion is O(n) due to the priority scan, but optimises to O(1)
|
||||
|
@ -250,4 +250,4 @@ log_drvinit(void *unused)
|
||||
make_dev(&log_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "klog");
|
||||
}
|
||||
|
||||
SYSINIT(logdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,log_drvinit,NULL)
|
||||
SYSINIT(logdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,log_drvinit,NULL);
|
||||
|
@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
|
||||
static MALLOC_DEFINE(M_GPROF, "gprof", "kernel profiling buffer");
|
||||
|
||||
static void kmstartup(void *);
|
||||
SYSINIT(kmem, SI_SUB_KPROF, SI_ORDER_FIRST, kmstartup, NULL)
|
||||
SYSINIT(kmem, SI_SUB_KPROF, SI_ORDER_FIRST, kmstartup, NULL);
|
||||
|
||||
struct gmonparam _gmonparam = { GMON_PROF_OFF };
|
||||
|
||||
@ -574,7 +574,7 @@ tcov_init(void *foo __unused)
|
||||
}
|
||||
}
|
||||
|
||||
SYSINIT(tcov_init, SI_SUB_KPROF, SI_ORDER_SECOND, tcov_init, NULL)
|
||||
SYSINIT(tcov_init, SI_SUB_KPROF, SI_ORDER_SECOND, tcov_init, NULL);
|
||||
|
||||
/*
|
||||
* GCC contains magic to recognize calls to for instance execve() and
|
||||
|
@ -130,7 +130,7 @@ mp_setmaxid(void *dummy)
|
||||
{
|
||||
cpu_mp_setmaxid();
|
||||
}
|
||||
SYSINIT(cpu_mp_setmaxid, SI_SUB_TUNABLES, SI_ORDER_FIRST, mp_setmaxid, NULL)
|
||||
SYSINIT(cpu_mp_setmaxid, SI_SUB_TUNABLES, SI_ORDER_FIRST, mp_setmaxid, NULL);
|
||||
|
||||
/*
|
||||
* Call the MD SMP initialization code.
|
||||
@ -152,7 +152,7 @@ mp_start(void *dummy)
|
||||
mp_ncpus);
|
||||
cpu_mp_announce();
|
||||
}
|
||||
SYSINIT(cpu_mp, SI_SUB_CPU, SI_ORDER_THIRD, mp_start, NULL)
|
||||
SYSINIT(cpu_mp, SI_SUB_CPU, SI_ORDER_THIRD, mp_start, NULL);
|
||||
|
||||
void
|
||||
forward_signal(struct thread *td)
|
||||
@ -593,5 +593,5 @@ mp_setvariables_for_up(void *dummy)
|
||||
KASSERT(PCPU_GET(cpuid) == 0, ("UP must have a CPU ID of zero"));
|
||||
}
|
||||
SYSINIT(cpu_mp_setvariables, SI_SUB_TUNABLES, SI_ORDER_FIRST,
|
||||
mp_setvariables_for_up, NULL)
|
||||
mp_setvariables_for_up, NULL);
|
||||
#endif /* SMP */
|
||||
|
@ -564,7 +564,8 @@ witness_initialize(void *dummy __unused)
|
||||
|
||||
mtx_lock(&Giant);
|
||||
}
|
||||
SYSINIT(witness_init, SI_SUB_WITNESS, SI_ORDER_FIRST, witness_initialize, NULL)
|
||||
SYSINIT(witness_init, SI_SUB_WITNESS, SI_ORDER_FIRST, witness_initialize,
|
||||
NULL);
|
||||
|
||||
static int
|
||||
sysctl_debug_witness_watch(SYSCTL_HANDLER_ARGS)
|
||||
|
@ -731,4 +731,4 @@ cn_drvinit(void *unused)
|
||||
use_cnputs_mtx = 1;
|
||||
}
|
||||
|
||||
SYSINIT(cndev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, cn_drvinit, NULL)
|
||||
SYSINIT(cndev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, cn_drvinit, NULL);
|
||||
|
@ -914,4 +914,4 @@ pty_drvinit(void *unused)
|
||||
EVENTHANDLER_REGISTER(dev_clone, pty_clone, 0, 1000);
|
||||
}
|
||||
|
||||
SYSINIT(ptydev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,pty_drvinit,NULL)
|
||||
SYSINIT(ptydev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,pty_drvinit,NULL);
|
||||
|
@ -795,4 +795,4 @@ ptc_drvinit(void *unused)
|
||||
EVENTHANDLER_REGISTER(dev_clone, pty_clone, 0, 1000);
|
||||
}
|
||||
|
||||
SYSINIT(ptcdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,ptc_drvinit,NULL)
|
||||
SYSINIT(ptcdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,ptc_drvinit,NULL);
|
||||
|
@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/clist.h>
|
||||
|
||||
static void clist_init(void *);
|
||||
SYSINIT(clist, SI_SUB_CLIST, SI_ORDER_FIRST, clist_init, NULL)
|
||||
SYSINIT(clist, SI_SUB_CLIST, SI_ORDER_FIRST, clist_init, NULL);
|
||||
|
||||
static struct cblock *cfreelist = 0;
|
||||
int cfreecount = 0;
|
||||
|
@ -93,4 +93,4 @@ ctty_drvinit(void *unused)
|
||||
ctty = make_dev(&ctty_cdevsw, 0, 0, 0, 0666, "ctty");
|
||||
}
|
||||
|
||||
SYSINIT(cttydev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,ctty_drvinit,NULL)
|
||||
SYSINIT(cttydev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,ctty_drvinit,NULL);
|
||||
|
@ -58,11 +58,11 @@ __FBSDID("$FreeBSD$");
|
||||
*/
|
||||
|
||||
static void domaininit(void *);
|
||||
SYSINIT(domain, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST, domaininit, NULL)
|
||||
SYSINIT(domain, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST, domaininit, NULL);
|
||||
|
||||
static void domainfinalize(void *);
|
||||
SYSINIT(domainfin, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST, domainfinalize,
|
||||
NULL)
|
||||
NULL);
|
||||
|
||||
static struct callout pffast_callout;
|
||||
static struct callout pfslow_callout;
|
||||
|
@ -428,4 +428,4 @@ aclinit(void *dummy __unused)
|
||||
acl_zone = uma_zcreate("ACL UMA zone", sizeof(struct acl),
|
||||
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
|
||||
}
|
||||
SYSINIT(acls, SI_SUB_ACL, SI_ORDER_FIRST, aclinit, NULL)
|
||||
SYSINIT(acls, SI_SUB_ACL, SI_ORDER_FIRST, aclinit, NULL);
|
||||
|
@ -2036,7 +2036,7 @@ static struct kproc_desc buf_kp = {
|
||||
buf_daemon,
|
||||
&bufdaemonproc
|
||||
};
|
||||
SYSINIT(bufdaemon, SI_SUB_KTHREAD_BUF, SI_ORDER_FIRST, kproc_start, &buf_kp)
|
||||
SYSINIT(bufdaemon, SI_SUB_KTHREAD_BUF, SI_ORDER_FIRST, kproc_start, &buf_kp);
|
||||
|
||||
static void
|
||||
buf_daemon()
|
||||
|
@ -561,7 +561,7 @@ nchinit(void *dummy __unused)
|
||||
|
||||
nchashtbl = hashinit(desiredvnodes * 2, M_VFSCACHE, &nchash);
|
||||
}
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nchinit, NULL)
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nchinit, NULL);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -52,7 +52,7 @@ vfs_hashinit(void *dummy __unused)
|
||||
}
|
||||
|
||||
/* Must be SI_ORDER_SECOND so desiredvnodes is available */
|
||||
SYSINIT(vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL)
|
||||
SYSINIT(vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL);
|
||||
|
||||
static struct vfs_hash_head *
|
||||
vfs_hash_index(const struct mount *mp, u_int hash)
|
||||
|
@ -86,7 +86,7 @@ nameiinit(void *dummy __unused)
|
||||
panic("nameiinit: getnewvnode");
|
||||
VN_LOCK_ASHARE(vp_crossmp);
|
||||
}
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL)
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL);
|
||||
|
||||
#ifdef LOOKUP_SHARED
|
||||
static int lookup_shared = 1;
|
||||
|
@ -321,7 +321,7 @@ vntblinit(void *dummy __unused)
|
||||
syncer_maxdelay = syncer_mask + 1;
|
||||
mtx_init(&sync_mtx, "Syncer mtx", NULL, MTX_DEF);
|
||||
}
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL)
|
||||
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL);
|
||||
|
||||
|
||||
/*
|
||||
@ -780,7 +780,8 @@ static struct kproc_desc vnlru_kp = {
|
||||
vnlru_proc,
|
||||
&vnlruproc
|
||||
};
|
||||
SYSINIT(vnlru, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &vnlru_kp)
|
||||
SYSINIT(vnlru, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start,
|
||||
&vnlru_kp);
|
||||
|
||||
/*
|
||||
* Routines having to do with the management of the vnode table.
|
||||
@ -1609,7 +1610,7 @@ static struct kproc_desc up_kp = {
|
||||
sched_sync,
|
||||
&updateproc
|
||||
};
|
||||
SYSINIT(syncer, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &up_kp)
|
||||
SYSINIT(syncer, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &up_kp);
|
||||
|
||||
static int
|
||||
sync_vnode(struct synclist *slp, struct bufobj **bo, struct thread *td)
|
||||
|
@ -1826,7 +1826,7 @@ bpf_stats_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
return (error);
|
||||
}
|
||||
|
||||
SYSINIT(bpfdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,bpf_drvinit,NULL)
|
||||
SYSINIT(bpfdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE,bpf_drvinit,NULL);
|
||||
|
||||
#else /* !DEV_BPF && !NETGRAPH_BPF */
|
||||
/*
|
||||
|
@ -155,8 +155,8 @@ static struct filterops netdev_filtops =
|
||||
/*
|
||||
* System initialization
|
||||
*/
|
||||
SYSINIT(interfaces, SI_SUB_INIT_IF, SI_ORDER_FIRST, if_init, NULL)
|
||||
SYSINIT(interface_check, SI_SUB_PROTO_IF, SI_ORDER_FIRST, if_check, NULL)
|
||||
SYSINIT(interfaces, SI_SUB_INIT_IF, SI_ORDER_FIRST, if_init, NULL);
|
||||
SYSINIT(interface_check, SI_SUB_PROTO_IF, SI_ORDER_FIRST, if_check, NULL);
|
||||
|
||||
MALLOC_DEFINE(M_IFNET, "ifnet", "interface internals");
|
||||
MALLOC_DEFINE(M_IFADDR, "ifaddr", "interface address");
|
||||
|
@ -266,4 +266,4 @@ start_netisr(void *dummy)
|
||||
if (swi_add(NULL, "net", swi_net, NULL, SWI_NET, INTR_MPSAFE, &net_ih))
|
||||
panic("start_netisr");
|
||||
}
|
||||
SYSINIT(start_netisr, SI_SUB_SOFTINTR, SI_ORDER_FIRST, start_netisr, NULL)
|
||||
SYSINIT(start_netisr, SI_SUB_SOFTINTR, SI_ORDER_FIRST, start_netisr, NULL);
|
||||
|
@ -117,7 +117,7 @@ rts_init(void)
|
||||
mtx_init(&rtsintrq.ifq_mtx, "rts_inq", NULL, MTX_DEF);
|
||||
netisr_register(NETISR_ROUTE, rts_input, &rtsintrq, NETISR_MPSAFE);
|
||||
}
|
||||
SYSINIT(rtsock, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rts_init, 0)
|
||||
SYSINIT(rtsock, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rts_init, 0);
|
||||
|
||||
static void
|
||||
rts_input(struct mbuf *m)
|
||||
|
@ -780,7 +780,7 @@ ipatm_mod(lkmtp, cmd, ver)
|
||||
*/
|
||||
static void ipatm_doload(void *);
|
||||
|
||||
SYSINIT(atmipatm, SI_SUB_PROTO_END, SI_ORDER_ANY, ipatm_doload, NULL)
|
||||
SYSINIT(atmipatm, SI_SUB_PROTO_END, SI_ORDER_ANY, ipatm_doload, NULL);
|
||||
|
||||
/*
|
||||
* Kernel initialization
|
||||
|
@ -855,7 +855,7 @@ sigpvc_mod(lkmtp, cmd, ver)
|
||||
*/
|
||||
static void sigpvc_doload(void *);
|
||||
|
||||
SYSINIT(atmsigpvc, SI_SUB_PROTO_END, SI_ORDER_ANY, sigpvc_doload, NULL)
|
||||
SYSINIT(atmsigpvc, SI_SUB_PROTO_END, SI_ORDER_ANY, sigpvc_doload, NULL);
|
||||
|
||||
/*
|
||||
* Kernel initialization
|
||||
|
@ -1239,7 +1239,7 @@ spans_mod(lkmtp, cmd, ver)
|
||||
*/
|
||||
static void spans_doload(void *);
|
||||
|
||||
SYSINIT(atmspans, SI_SUB_PROTO_END, SI_ORDER_ANY, spans_doload, NULL)
|
||||
SYSINIT(atmspans, SI_SUB_PROTO_END, SI_ORDER_ANY, spans_doload, NULL);
|
||||
|
||||
/*
|
||||
* Kernel initialization
|
||||
|
@ -344,7 +344,7 @@ uni_mod(lkmtp, cmd, ver)
|
||||
*/
|
||||
static void uni_doload(void *);
|
||||
|
||||
SYSINIT(atmuni, SI_SUB_PROTO_END, SI_ORDER_ANY, uni_doload, NULL)
|
||||
SYSINIT(atmuni, SI_SUB_PROTO_END, SI_ORDER_ANY, uni_doload, NULL);
|
||||
|
||||
/*
|
||||
* Kernel initialization
|
||||
|
@ -1940,7 +1940,7 @@ ipsec_attach(void)
|
||||
SECPOLICY_LOCK_INIT(&ip4_def_policy);
|
||||
ip4_def_policy.refcnt = 1; /* NB: disallow free */
|
||||
}
|
||||
SYSINIT(ipsec, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST, ipsec_attach, NULL)
|
||||
SYSINIT(ipsec, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST, ipsec_attach, NULL);
|
||||
|
||||
|
||||
/* XXX this stuff doesn't belong here... */
|
||||
|
@ -332,6 +332,6 @@ nfs_rootconf(void)
|
||||
rootdevnames[0] = "nfs:";
|
||||
}
|
||||
|
||||
SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, nfs_rootconf, NULL)
|
||||
SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, nfs_rootconf, NULL);
|
||||
#endif
|
||||
|
||||
|
@ -158,7 +158,7 @@ static int set_fpcontext(struct thread *td, const mcontext_t *mcp);
|
||||
static void set_fpregs_xmm(struct save87 *, struct savexmm *);
|
||||
static void fill_fpregs_xmm(struct savexmm *, struct save87 *);
|
||||
#endif /* CPU_ENABLE_SSE */
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
|
||||
|
||||
int need_pre_dma_flush; /* If 1, use wbinvd befor DMA transfer. */
|
||||
int need_post_dma_flush; /* If 1, use invd after DMA transfer. */
|
||||
@ -2186,7 +2186,7 @@ spinlock_exit(void)
|
||||
|
||||
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
|
||||
static void f00f_hack(void *unused);
|
||||
SYSINIT(f00f_hack, SI_SUB_INTRINSIC, SI_ORDER_FIRST, f00f_hack, NULL)
|
||||
SYSINIT(f00f_hack, SI_SUB_INTRINSIC, SI_ORDER_FIRST, f00f_hack, NULL);
|
||||
|
||||
static void
|
||||
f00f_hack(void *unused)
|
||||
|
@ -143,7 +143,7 @@ SYSCTL_INT(_machdep, CPU_CACHELINE, cacheline_size,
|
||||
CTLFLAG_RD, &cacheline_size, 0, "");
|
||||
|
||||
static void cpu_startup(void *);
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
|
||||
|
||||
void powerpc_init(u_int, u_int, u_int, void *);
|
||||
|
||||
|
@ -180,7 +180,7 @@ SYSCTL_INT(_machdep, CPU_CACHELINE, cacheline_size,
|
||||
CTLFLAG_RD, &cacheline_size, 0, "");
|
||||
|
||||
static void cpu_e500_startup(void *);
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_e500_startup, NULL)
|
||||
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_e500_startup, NULL);
|
||||
|
||||
void print_kernel_section_addr(void);
|
||||
void dump_bootinfo(void);
|
||||
|
@ -138,7 +138,7 @@ __FBSDID("$FreeBSD$");
|
||||
#endif
|
||||
|
||||
static void sf_buf_init(void *arg);
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL);
|
||||
|
||||
LIST_HEAD(sf_head, sf_buf);
|
||||
|
||||
|
@ -262,7 +262,7 @@ audit_init(void)
|
||||
audit_worker_init();
|
||||
}
|
||||
|
||||
SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL)
|
||||
SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL);
|
||||
|
||||
/*
|
||||
* Drain the audit queue and close the log at shutdown. Note that this can
|
||||
|
@ -91,7 +91,7 @@
|
||||
#endif
|
||||
|
||||
static void sf_buf_init(void *arg);
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL);
|
||||
|
||||
/*
|
||||
* Expanded sf_freelist head. Really an SLIST_HEAD() in disguise, with the
|
||||
|
@ -112,7 +112,7 @@ struct __hack
|
||||
priority); \
|
||||
} \
|
||||
SYSINIT(name ## _evh_init, SI_SUB_CONFIGURE, SI_ORDER_ANY, \
|
||||
name ## _evh_init, arg) \
|
||||
name ## _evh_init, arg); \
|
||||
struct __hack
|
||||
|
||||
#define EVENTHANDLER_INVOKE(name, ...) \
|
||||
|
@ -129,7 +129,7 @@ struct mod_metadata {
|
||||
MODULE_DEPEND(name, kernel, __FreeBSD_version, \
|
||||
__FreeBSD_version, MODULE_KERNEL_MAXVER); \
|
||||
MODULE_METADATA(_md_##name, MDT_MODULE, &data, #name); \
|
||||
SYSINIT(name##module, sub, order, module_register_init, &data) \
|
||||
SYSINIT(name##module, sub, order, module_register_init, &data); \
|
||||
struct __hack
|
||||
|
||||
#define MODULE_VERSION(module, version) \
|
||||
|
@ -97,7 +97,7 @@ taskqueue_define_##name(void *arg) \
|
||||
} \
|
||||
\
|
||||
SYSINIT(taskqueue_##name, SI_SUB_CONFIGURE, SI_ORDER_SECOND, \
|
||||
taskqueue_define_##name, NULL) \
|
||||
taskqueue_define_##name, NULL); \
|
||||
\
|
||||
struct __hack
|
||||
#define TASKQUEUE_DEFINE_THREAD(name) \
|
||||
@ -122,7 +122,7 @@ taskqueue_define_##name(void *arg) \
|
||||
} \
|
||||
\
|
||||
SYSINIT(taskqueue_##name, SI_SUB_CONFIGURE, SI_ORDER_SECOND, \
|
||||
taskqueue_define_##name, NULL) \
|
||||
taskqueue_define_##name, NULL); \
|
||||
\
|
||||
struct __hack
|
||||
#define TASKQUEUE_FAST_DEFINE_THREAD(name) \
|
||||
|
@ -711,7 +711,8 @@ static struct kproc_desc softdep_kp = {
|
||||
softdep_flush,
|
||||
&softdepproc
|
||||
};
|
||||
SYSINIT(sdproc, SI_SUB_KTHREAD_UPDATE, SI_ORDER_ANY, kproc_start, &softdep_kp)
|
||||
SYSINIT(sdproc, SI_SUB_KTHREAD_UPDATE, SI_ORDER_ANY, kproc_start,
|
||||
&softdep_kp);
|
||||
|
||||
static void
|
||||
softdep_flush(void)
|
||||
|
@ -101,7 +101,7 @@ extern int maxslp;
|
||||
* Note: proc0 from proc.h
|
||||
*/
|
||||
static void vm_init_limits(void *);
|
||||
SYSINIT(vm_limits, SI_SUB_VM_CONF, SI_ORDER_FIRST, vm_init_limits, &proc0)
|
||||
SYSINIT(vm_limits, SI_SUB_VM_CONF, SI_ORDER_FIRST, vm_init_limits, &proc0);
|
||||
|
||||
/*
|
||||
* THIS MUST BE THE LAST INITIALIZATION ITEM!!!
|
||||
@ -109,7 +109,7 @@ SYSINIT(vm_limits, SI_SUB_VM_CONF, SI_ORDER_FIRST, vm_init_limits, &proc0)
|
||||
* Note: run scheduling should be divorced from the vm system.
|
||||
*/
|
||||
static void scheduler(void *);
|
||||
SYSINIT(scheduler, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, scheduler, NULL)
|
||||
SYSINIT(scheduler, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, scheduler, NULL);
|
||||
|
||||
#ifndef NO_SWAPPING
|
||||
static int swapout(struct proc *);
|
||||
|
@ -97,7 +97,7 @@ SYSCTL_INT(_vm, OID_AUTO, exec_map_entries, CTLFLAG_RD, &exec_map_entries, 0,
|
||||
* System initialization
|
||||
*/
|
||||
static void vm_mem_init(void *);
|
||||
SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL)
|
||||
SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init, NULL);
|
||||
|
||||
/*
|
||||
* vm_init initializes the virtual memory system.
|
||||
|
@ -104,7 +104,8 @@ SYSCTL_INT(_vm, OID_AUTO, max_proc_mmap, CTLFLAG_RW, &max_proc_mmap, 0, "");
|
||||
* multi-threaded processes are not unduly inconvenienced.
|
||||
*/
|
||||
static void vmmapentry_rsrc_init(void *);
|
||||
SYSINIT(vmmersrc, SI_SUB_KVM_RSRC, SI_ORDER_FIRST, vmmapentry_rsrc_init, NULL)
|
||||
SYSINIT(vmmersrc, SI_SUB_KVM_RSRC, SI_ORDER_FIRST, vmmapentry_rsrc_init,
|
||||
NULL);
|
||||
|
||||
static void
|
||||
vmmapentry_rsrc_init(dummy)
|
||||
|
@ -123,7 +123,8 @@ static struct kproc_desc page_kp = {
|
||||
vm_pageout,
|
||||
&pageproc
|
||||
};
|
||||
SYSINIT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_FIRST, kproc_start, &page_kp)
|
||||
SYSINIT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_FIRST, kproc_start,
|
||||
&page_kp);
|
||||
|
||||
#if !defined(NO_SWAPPING)
|
||||
/* the kernel process "vm_daemon"*/
|
||||
@ -135,7 +136,7 @@ static struct kproc_desc vm_kp = {
|
||||
vm_daemon,
|
||||
&vmproc
|
||||
};
|
||||
SYSINIT(vmdaemon, SI_SUB_KTHREAD_VM, SI_ORDER_FIRST, kproc_start, &vm_kp)
|
||||
SYSINIT(vmdaemon, SI_SUB_KTHREAD_VM, SI_ORDER_FIRST, kproc_start, &vm_kp);
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -164,4 +164,4 @@ pagezero_start(void __unused *arg)
|
||||
sched_add(td, SRQ_BORING);
|
||||
thread_unlock(td);
|
||||
}
|
||||
SYSINIT(pagezero, SI_SUB_KTHREAD_VM, SI_ORDER_ANY, pagezero_start, NULL)
|
||||
SYSINIT(pagezero, SI_SUB_KTHREAD_VM, SI_ORDER_ANY, pagezero_start, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user