Hi All, What's the role or value of the third argument in the vhost_net_ioctl function in /drivers/vhost/net.c . The function declaration is static long vhost_net_ioctl(struct file *f, unsigned int ioctl, unsigned long arg) As per my knowledge, *f represents the fd of vhost-net device, ioctl any device request like VHOST_NET_SET_BACKEND, But what's the third arg represent ? With hope, Devi.
On Wed, Oct 6, 2010 at 11:16 AM, devi thapa <devi.thapa at gmail.com> wrote:> ? ? ? ? ? What's the role or value of the third argument in the > vhost_net_ioctl function in /drivers/vhost/net.c .Read the code. There is the kernel vhost code and the QEMU vhost userspace code to look at. By studying both sides you can figure this out. Look at how arg is used in vhost_net_ioctl(). Please spend more time learning how things work before sending questions to the mailing list. Stefan