Messages in this thread | | | Date | Sun, 8 Feb 2004 08:29:46 -0800 | From | Greg KH <> | Subject | Re: [Infiniband-general] Getting an Infiniband access layer in theLinux kernel |
| |
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.
Why do you want to run your code in both places? Does this mean that it doesn't even really need to be in the kernel as it works just fine in userspace?
thanks,
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/
| |