sys/dev/disk/dm/dm_pdev.c
static dm_pdev_t *
dm_pdev_alloc(const char *name)
{
	dm_pdev_t *dmp;

	if ((dmp = kmalloc(sizeof(dm_pdev_t), M_DM, M_WAITOK | M_ZERO)) == NULL)
		return NULL;

	strlcpy(dmp->name, name, MAX_DEV_NAME);

	dmp->ref_cnt = 0;
	dmp->pdev_vnode = NULL;

	return dmp;
}
/*
 * Allocat new pdev structure if is not already present and
 * set name.
 */
Allocat new pdev structure if is not already present and
set name.
Allocat new pdev structure if is not already present and set name .
static dm_pdev_t *
dm_pdev_alloc(const char *name)
{
	dm_pdev_t *dmp;
	if ((dmp = kmalloc(sizeof(dm_pdev_t), M_DM, M_WAITOK | M_ZERO)) == NULL)
		return NULL;
	strlcpy(dmp->name, name, MAX_DEV_NAME);
	dmp->ref_cnt = 0;
	dmp->pdev_vnode = NULL;
	return dmp;
}
static dm_pdev_t * dm_pdev_alloc ( const char * name ) { dm_pdev_t * dmp ; if ( ( dmp = kmalloc ( sizeof ( dm_pdev_t ) , M_DM , M_WAITOK | M_ZERO ) ) == NULL ) return NULL ; strlcpy ( dmp -> name , name , MAX_DEV_NAME ) ; dmp -> ref_cnt = 0 ; dmp -> pdev_vnode = NULL ; return dmp ; }
Allocat new pdev structure if is not already present and
 set name.
Allocat new pdev structure if is not already present and set name .