linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Safe error numbers for User-defined return values
@ 2001-11-06 11:22 Andy Jeffries
  2001-11-06 11:57 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Jeffries @ 2001-11-06 11:22 UTC (permalink / raw)
  To: linux-kernel


Hi,

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.

Thanks,


-- 
Andy Jeffries                   | Scramdisk Linux Project
http://www.scramdisklinux.org   | Lead developer

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Safe error numbers for User-defined return values
  2001-11-06 11:22 Safe error numbers for User-defined return values Andy Jeffries
@ 2001-11-06 11:57 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2001-11-06 11:57 UTC (permalink / raw)
  To: Andy Jeffries; +Cc: linux-kernel

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-06 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-06 11:22 Safe error numbers for User-defined return values Andy Jeffries
2001-11-06 11:57 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).