All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: standard error codes
Date: Tue, 14 Mar 2017 14:15:43 +0800	[thread overview]
Message-ID: <20170314061543.GA336@kroah.com> (raw)
In-Reply-To: <20170314043338.GA5388@eros>

On Tue, Mar 14, 2017 at 03:33:38PM +1100, Tobin C. Harding wrote:
> Driver code in staging/drivers/ks7010 uses the error code -E2BIG as
> the error returned if a string argument is larger than destination
> buffer. Would this not be better suited to the error code -EOVERFLOW?
> Does it matter?
> 
> For reference;
> 
> #define E2BIG        7  /* Argument list too long */
> #define EOVERFLOW   75  /* Value too large for defined data type */

It all depends on what happens to this error code.  Is it sent to
userspace?  If so, what type of itnerface is it?

thanks,

greg k-h

      reply	other threads:[~2017-03-14  6:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-14  4:33 standard error codes Tobin C. Harding
2017-03-14  6:15 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170314061543.GA336@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.