dev_ioctl

Name

dev_ioctl --  network device ioctl

Synopsis

int dev_ioctl (unsigned int cmd, void * arg);

Arguments

cmd

command to issue

arg

pointer to a struct ifreq in user space

Description

Issue ioctl functions to devices. This is normally called by the user space syscall interfaces but can sometimes be useful for other purposes. The return value is the return from the syscall if positive or a negative errno code on error.