DEV_ALLOC_NAME

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

dev_alloc_name - allocate a name for a device  

SYNOPSIS

"SYNOPSIS"

int dev_alloc_name (struct net_device * dev, const char * name);  

ARGUMENTS

dev
device
name
name format string
 

DESCRIPTION

Passed a format string - eg ``ltd'' it will try and find a suitable id. Not efficient for many devices, not called a lot. The caller must hold the dev_base or rtnl lock while allocating the name and adding the device in order to avoid duplicates. Returns the number of the unit assigned or a negative errno code.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 13:31:25 GMT, October 06, 2005