From: "H. Peter Anvin" <hpa@zytor.com>
To: "Chen, Dongliang" <Chen.D@ems-t.com>
Cc: Andreas Schwab <schwab@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: return negative number for unsigned long function in kernel
Date: Wed, 07 Mar 2007 08:30:47 -0800 [thread overview]
Message-ID: <45EEE8B7.3070108@zytor.com> (raw)
In-Reply-To: <314BE1148B8C8D468A05944FDF577583069B0222@MRE02.enterprise.com>
Chen, Dongliang wrote:
> Peter & Andreas,
>
> Thank you very much for your help.
>
> I understood that the kernel error numbers are limited. The largest
> error number for i386 (kernel 2.6) is 131 so far. Assume that the
> virtual address returned from do_mmap_pgoff will never exceed (unsigned
> long)(-1000L), which is in the address range one page below the maximum
> virtual address, then IS_ERR_VALUE() should work.
>
The error value boundary is defined in <linux/err.h>, currently 4095.
-hpa
prev parent reply other threads:[~2007-03-07 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 14:52 return negative number for unsigned long function in kernel Chen, Dongliang
2007-03-06 19:05 ` Andreas Schwab
2007-03-07 0:39 ` H. Peter Anvin
2007-03-07 13:31 ` Chen, Dongliang
2007-03-07 16:30 ` H. Peter Anvin [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=45EEE8B7.3070108@zytor.com \
--to=hpa@zytor.com \
--cc=Chen.D@ems-t.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schwab@suse.de \
/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