__DEV_ALLOC

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

 

NAME

__dev_alloc - allocate a network device and name  

SYNOPSIS

"SYNOPSIS"

struct net_device * __dev_alloc (const char * name, int * err);  

ARGUMENTS

name
name format string
err
error return pointer
 

DESCRIPTION

Passed a format string, eg. ``ltd'', it will allocate a network device and space for the name. NULL is returned if no memory is available. If the allocation succeeds then the name is assigned and the device pointer returned. NULL is returned if the name allocation failed. The cause of an error is returned as a negative errno code in the variable err points to.

This call is deprecated in favor of alloc_netdev because the caller must hold the dev_base or RTNL locks when doing this in order to avoid duplicate name allocations.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:30:20 GMT, October 06, 2005