FreeBSD/sys/dev/mrsas/mrsas_ioctl.c
/*
 * mrsas_alloc_cb:	Callback function of bus_dmamap_load()
 * input:			callback argument,
 * 					machine dependent type that describes DMA segments,
 * 					number of segments,
 * 					error code.
 *
 * This function is for the driver to receive mapping information resultant of
 * the bus_dmamap_load(). The information is actually not being used, but the
 * address is saved anyway.
 */
Callback function of bus_dmamap_load()
input:                       callback argument,
machine dependent type that describes DMA segments,
number of segments,
error code.

This function is for the driver to receive mapping information resultant of
the bus_dmamap_load(). The information is actually not being used, but the
address is saved anyway.
Callback function of bus_dmamap_load () input : callback argument machine dependent type that describes DMA segments number of segments error code . This function is for the driver to receive mapping information resultant of the bus_dmamap_load () . The information is actually not being used but the address is saved anyway .
static void
mrsas_alloc_cb(void *arg, bus_dma_segment_t *segs,
    int nsegs, int error)
{
	bus_addr_t *addr;
	addr = arg;
	*addr = segs[0].ds_addr;
}
static void mrsas_alloc_cb ( void * arg , bus_dma_segment_t * segs , int nsegs , int error ) { bus_addr_t * addr ; addr = arg ; * addr = segs [ 0 ] . ds_addr ; }
mrsas_alloc_cb:      Callback function of bus_dmamap_load()
 input:                       callback argument,
                                      machine dependent type that describes DMA segments,
                                      number of segments,
                                      error code.
mrsas_alloc_cb : Callback function of bus_dmamap_load () input : callback argument machine dependent type that describes DMA segments number of segments error code .