Rechercher une page de manuel
dev_alloc_name
Langue: en
Version: October 2010 (fedora - 01/12/10)
Section: 9 (Appels noyau Linux)
NAME
dev_alloc_name - allocate a name for a deviceSYNOPSIS
- int dev_alloc_name(struct net_device * dev, const char * name);
ARGUMENTS
dev
- device
name
- name format string
DESCRIPTION
Passed a format string - eg lqltdrq it will try and find a suitable id. It scans list of devices to build up a free map, then chooses the first empty slot. The caller must hold the dev_base or rtnl lock while allocating the name and adding the device in order to avoid duplicates. Limited to bits_per_byte * page size devices (ie 32K on most platforms). Returns the number of the unit assigned or a negative errno code.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre