dev_valid_name(9) check if name is okay for network device

SYNOPSIS

bool dev_valid_name(const char * name);

ARGUMENTS

name

name string

DESCRIPTION

Network device names need to be valid file names to to allow sysfs to work. We also disallow any kind of whitespace.

COPYRIGHT