FreeBSD kernel kern code
subr_autoconf.c File Reference
#include <sys/cdefs.h>
#include "opt_ddb.h"
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/linker.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
#include <sys/systm.h>
Include dependency graph for subr_autoconf.c:

Go to the source code of this file.

Macros

#define WARNING_INTERVAL_SECS   60
 

Functions

 __FBSDID ("$FreeBSD$")
 
static STAILQ_HEAD (MTX_SYSINIT(intr_config_hook)
 
static void config_intrhook_oneshot_func (void *arg)
 
static void run_interrupt_driven_config_hooks_warning (int warned)
 
static void run_interrupt_driven_config_hooks ()
 
static void boot_run_interrupt_driven_config_hooks (void *dummy)
 
 SYSINIT (intr_config_hooks, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST, boot_run_interrupt_driven_config_hooks, NULL)
 
int config_intrhook_establish (struct intr_config_hook *hook)
 
void config_intrhook_oneshot (ich_func_t func, void *arg)
 
static void config_intrhook_disestablish_locked (struct intr_config_hook *hook)
 
void config_intrhook_disestablish (struct intr_config_hook *hook)
 
int config_intrhook_drain (struct intr_config_hook *hook)
 

Macro Definition Documentation

◆ WARNING_INTERVAL_SECS

#define WARNING_INTERVAL_SECS   60

Definition at line 93 of file subr_autoconf.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ boot_run_interrupt_driven_config_hooks()

static void boot_run_interrupt_driven_config_hooks ( void *  dummy)
static

Definition at line 154 of file subr_autoconf.c.

References hz, run_interrupt_driven_config_hooks(), run_interrupt_driven_config_hooks_warning(), and WARNING_INTERVAL_SECS.

Here is the call graph for this function:

◆ config_intrhook_disestablish()

void config_intrhook_disestablish ( struct intr_config_hook *  hook)

Definition at line 256 of file subr_autoconf.c.

References config_intrhook_disestablish_locked().

Referenced by config_intrhook_oneshot_func().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_intrhook_disestablish_locked()

static void config_intrhook_disestablish_locked ( struct intr_config_hook *  hook)
static

Definition at line 234 of file subr_autoconf.c.

References panic(), and wakeup().

Referenced by config_intrhook_disestablish(), and config_intrhook_drain().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_intrhook_drain()

int config_intrhook_drain ( struct intr_config_hook *  hook)

Definition at line 264 of file subr_autoconf.c.

References config_intrhook_disestablish_locked(), and hz.

Here is the call graph for this function:

◆ config_intrhook_establish()

int config_intrhook_establish ( struct intr_config_hook *  hook)

Definition at line 187 of file subr_autoconf.c.

References printf(), and run_interrupt_driven_config_hooks().

Referenced by config_intrhook_oneshot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_intrhook_oneshot()

void config_intrhook_oneshot ( ich_func_t  func,
void *  arg 
)

Definition at line 221 of file subr_autoconf.c.

References config_intrhook_establish(), config_intrhook_oneshot_func(), and malloc().

Referenced by bus_delayed_attach_children().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_intrhook_oneshot_func()

static void config_intrhook_oneshot_func ( void *  arg)
static

Definition at line 79 of file subr_autoconf.c.

References config_intrhook_disestablish(), and free().

Referenced by config_intrhook_oneshot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_interrupt_driven_config_hooks()

static void run_interrupt_driven_config_hooks ( )
static

Definition at line 119 of file subr_autoconf.c.

Referenced by boot_run_interrupt_driven_config_hooks(), and config_intrhook_establish().

Here is the caller graph for this function:

◆ run_interrupt_driven_config_hooks_warning()

static void run_interrupt_driven_config_hooks_warning ( int  warned)
static

Definition at line 95 of file subr_autoconf.c.

References linker_search_symbol_name(), printf(), and WARNING_INTERVAL_SECS.

Referenced by boot_run_interrupt_driven_config_hooks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STAILQ_HEAD()

static STAILQ_HEAD ( MTX_SYSINIT intr_config_hook)
static

Definition at line 59 of file subr_autoconf.c.

◆ SYSINIT()

SYSINIT ( intr_config_hooks  ,
SI_SUB_INT_CONFIG_HOOKS  ,
SI_ORDER_FIRST  ,
boot_run_interrupt_driven_config_hooks  ,
NULL   
)