Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1176465 > unrolled thread

[Question] Usage of ENOTSUPP error code

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2015-07-03 12:20 +0200
Last post2015-07-03 12:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [Question] Usage of ENOTSUPP error code Masahiro Yamada <yamada.masahiro@socionext.com> - 2015-07-03 12:20 +0200

#1176465 — [Question] Usage of ENOTSUPP error code

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2015-07-03 12:20 +0200
Subject[Question] Usage of ENOTSUPP error code
Message-ID<pI6eB-7fP-1@gated-at.bofh.it>
Hello experts,


I noticed many drivers return -ENOTSUPP on error.



I assume ENOTSUPP is defined in include/linux/errno.h
as follows:


/* Defined for the NFSv3 protocol */
#define EBADHANDLE 521 /* Illegal NFS file handle */
#define ENOTSYNC 522 /* Update synchronization mismatch */
#define EBADCOOKIE 523 /* Cookie is stale */
#define ENOTSUPP 524 /* Operation is not supported */
#define ETOOSMALL 525 /* Buffer or request is too small */
#define ESERVERFAULT 526 /* An untranslatable error occurred */
#define EBADTYPE 527 /* Type not supported by server */
#define EJUKEBOX 528 /* Request initiated, but will not complete
before timeout */
#define EIOCBQUEUED 529 /* iocb queued, will get completion event */


I also assume the comment "Defined for the NFSv3 protocol"
is valid for whole of this block.

If so, should ENOTSUPP be only used for NFS-related errors?

In fact, ENOTSUPP is used by various drivers
including non-network ones such as pinctrl, USB, etc.





-- 
Best Regards
Masahiro Yamada
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web