FreeBSD kernel CAM code
ctl_frontend.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/types.h>
#include <sys/malloc.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/condvar.h>
#include <sys/endian.h>
#include <sys/queue.h>
#include <sys/sysctl.h>
#include <sys/nv.h>
#include <sys/dnv.h>
#include <cam/scsi/scsi_all.h>
#include <cam/scsi/scsi_da.h>
#include <cam/ctl/ctl_io.h>
#include <cam/ctl/ctl.h>
#include <cam/ctl/ctl_frontend.h>
#include <cam/ctl/ctl_backend.h>
#include <cam/ctl/ctl_ioctl.h>
#include <cam/ctl/ctl_ha.h>
#include <cam/ctl/ctl_private.h>
#include <cam/ctl/ctl_debug.h>
Include dependency graph for ctl_frontend.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int ctl_frontend_register (struct ctl_frontend *fe)
 
int ctl_frontend_deregister (struct ctl_frontend *fe)
 
struct ctl_frontendctl_frontend_find (char *frontend_name)
 
int ctl_port_register (struct ctl_port *port)
 
int ctl_port_deregister (struct ctl_port *port)
 
void ctl_port_set_wwns (struct ctl_port *port, int wwnn_valid, uint64_t wwnn, int wwpn_valid, uint64_t wwpn)
 
void ctl_port_online (struct ctl_port *port)
 
void ctl_port_offline (struct ctl_port *port)
 

Variables

struct ctl_softccontrol_softc
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ ctl_frontend_deregister()

int ctl_frontend_deregister ( struct ctl_frontend fe)

Definition at line 109 of file ctl_frontend.c.

References control_softc, ctl_softc::ctl_lock, ctl_frontend::name, ctl_softc::num_frontends, and ctl_frontend::shutdown.

Referenced by ctl_shutdown().

Here is the caller graph for this function:

◆ ctl_frontend_find()

struct ctl_frontend * ctl_frontend_find ( char *  frontend_name)

Definition at line 131 of file ctl_frontend.c.

References control_softc, ctl_softc::ctl_lock, and ctl_frontend::name.

Referenced by ctl_ioctl().

Here is the caller graph for this function:

◆ ctl_frontend_register()

int ctl_frontend_register ( struct ctl_frontend fe)

Definition at line 73 of file ctl_frontend.c.

References control_softc, ctl_softc::ctl_lock, ctl_frontend::init, ctl_frontend::name, and ctl_softc::num_frontends.

Referenced by ctl_init().

Here is the caller graph for this function:

◆ ctl_port_deregister()

◆ ctl_port_offline()

◆ ctl_port_online()

◆ ctl_port_register()

◆ ctl_port_set_wwns()

Variable Documentation

◆ control_softc