FreeBSD/sys/kern/subr_bus.c
/**
 * @brief Wrapper function for BUS_DESCRIBE_INTR().
 *
 * This function first formats the requested description into a
 * temporary buffer and then calls the BUS_DESCRIBE_INTR() method of
 * the parent of @p dev.
 */
@brief Wrapper function for BUS_DESCRIBE_INTR().
This function first formats the requested description into a
temporary buffer and then calls the BUS_DESCRIBE_INTR() method of
the parent of @p dev.
@brief Wrapper function for BUS_DESCRIBE_INTR () . This function first formats the requested description into a temporary buffer and then calls the BUS_DESCRIBE_INTR () method of the parent of @p dev .
int
bus_describe_intr(device_t dev, struct resource *irq, void *cookie,
    const char *fmt, ...)
{
	va_list ap;
	char descr[MAXCOMLEN + 1];
	if (dev->parent == NULL)
		return (EINVAL);
	va_start(ap, fmt);
	vsnprintf(descr, sizeof(descr), fmt, ap);
	va_end(ap);
	return (BUS_DESCRIBE_INTR(dev->parent, dev, irq, cookie, descr));
}
int bus_describe_intr ( device_t dev , struct resource * irq , void * cookie , const char * fmt , ... ) { va_list ap ; char descr [ MAXCOMLEN + 1 ] ; if ( dev -> parent == NULL ) return ( EINVAL ) ; va_start ( ap , fmt ) ; vsnprintf ( descr , sizeof ( descr ) , fmt , ap ) ; va_end ( ap ) ; return ( BUS_DESCRIBE_INTR ( dev -> parent , dev , irq , cookie , descr ) ) ; }
@brief Wrapper function for BUS_DESCRIBE_INTR().
@brief Wrapper function for BUS_DESCRIBE_INTR () .