Re: ioctl_pipe(2): SYNOPSIS: $1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
> > The manual page ioctl_pipe(2) has this synopsis:
> > 
> >        int ioctl(int pipefd[1], IOC_WATCH_QUEUE_SET_SIZE, int size);
> >        int ioctl(int pipefd[1], IOC_WATCH_QUEUE_SET_FILTER,
> >                  struct watch_notification_filter *filter);
> > 
> > Which says the $1 is an array of int (the type is declared as int[1]).
> > However, this is incorrect, since the first argument is of course a
> > plain int, a single file descriptor.  Would you mind revising the page?

That looks indeed wrong, I suppose that we need just 'int pipefd' there.

And looking at the kernel both pipe file descriptors seems to get the
exact same fops so it shouldn't matter on which end we call the ioctl().

-- 
Cyril Hrubis
chrubis@xxxxxxx




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux