lkml.org 
[lkml]   [2004]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Infiniband-general] Getting an Infiniband access layer in theLinux kernel
On Sun, Feb 08, 2004 at 08:51:22AM -0800, Fab Tillier wrote:
> > On Sun, Feb 08, 2004 at 12:31:56AM -0800, Fab Tillier wrote:
> > >
> > > I think there is value in allowing the code to be shared between
> > > kernel mode and user mode. Would using a macro that resolve to the
> > > native kernel spin lock structure and functions be acceptable?
> >
> > Probably not, just use the in-kernel call, and be done with it. If you
> > _really_ want to share code between userspace and the kernel, keep a
> > different version of it somewhere else.
>
> Are you suggesting branching the user mode code from the kernel mode code?
> Duplication is not the same as sharing code - you have twice the number of
> places that require fixing in the event of a bug. If we can help it, we'd
> like to avoid this.

Do you honestly think that if your code ever makes it into the main
kernel tree, you would be able somehow to extact that and use it from
userspace properly?

No, just don't do this.

Remember, if you _can_ do this from userspace, then your code doesn't
need to be in the kernel at all :)

Oh, and I repeat, let's see some code. No more bickering about "what
ifs" anymore.

greg k-h
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:1.339 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site