dev_valid_name — check if name is okay for network device
int dev_valid_name (
)
name
name string
Network device names need to be valid file names to to allow sysfs to work. We also disallow any kind of whitespace.