From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: lkml@andyjeffries.co.uk (Andy Jeffries)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Safe error numbers for User-defined return values
Date: Tue, 6 Nov 2001 11:57:59 +0000 (GMT) [thread overview]
Message-ID: <E1614rf-0000HS-00@the-village.bc.nu> (raw)
In-Reply-To: <20011106112216.24a769aa.lkml@andyjeffries.co.uk> from "Andy Jeffries" at Nov 06, 2001 11:22:16 AM
> I want to define custom return values for my ioctl calls in my Kernel
> module. What is the recommended start value for user defined constants?
> I notice asm/errno.h only goes up to 124 (in 2.4.12), so should I start at
> 125 or should I start at 200 to be safe?
>
> I probably only need 30 or so different codes.
You want to return non base errno codes in a different field and return
real errno codes by return value. If everyone simple invented private
returns for ioctl all hell would break loose
prev parent reply other threads:[~2001-11-06 11:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-06 11:22 Andy Jeffries
2001-11-06 11:57 ` Alan Cox [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=E1614rf-0000HS-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@andyjeffries.co.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®