Re: [PATCH] PCI: Enable Function Level Reset(FLR) for PCI-E

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

 



On Tue, Sep 23, 2008 at 10:34:30PM -0600, Matthew Wilcox wrote:
> > > > +             return -ENOTSUPP;
> > >
> > >                 return -ENOTTY;
> > 
> > I will modify this. But I still don't understand why -ENOTTY... I think there 
> > are some history about it?
> 
> Yes.  ENOTTY means "This operation cannot be performed on this device".

"man errno" says:
       ENOTTY          Inappropriate I/O control operation (POSIX.1)

> EOPNOTSUPP is some networking error, I forget the details now.

       EOPNOTSUPP      Operation not supported on socket (POSIX.1)

                       (ENOTSUP and EOPNOTSUPP have the same value  on  Linux,
                       but  according  to POSIX.1 these error values should be
                       distinct.)


man page doesn't mention ENOTSUPP. And that might be sufficient
reason to not use it.
Folks have replaced ENOTSUPP for that reason in the past:
    http://www.uwsg.iu.edu/hypermail/linux/kernel/0402.3/0180.html
    http://linux.derkeiler.com/Mailing-Lists/Kernel/2006-04/msg06283.html


hth,
grant
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux