Re: [Infiniband-general] Getting an Infiniband access layer in theLinux kernel

From: Troy Benjegerdes
Date: Thu Feb 05 2004 - 20:59:54 EST


On Thu, Feb 05, 2004 at 05:02:30PM -0500, Tillier, Fabian wrote:
> That is absolutely correct. In addition to portability between kernel
> versions and operating systems, there is also portability between
> user-mode and kernel-mode within a single release.


This is another issue... I think we should have a mechanism to allow
user code to call functions in user mode that are exported by the
kernel. Like the gettimeofday() syscall bypass stuff which I have heard
about but can't remember the details of.

The linux kernel obviously knows exactly what kind of processor it is
running on, and should be able to know exactly what the best memcpy()
function is. This should be exported to userspace instead of depending
on glibc to ask the kernel what cpu it has, and hope glibc has
reasonably optimized code.

The same interface would quite easily solve the infiniband atomic
locking issues.

Anyone in the infiniband industry please take note, we probably should
have had this discussion a year ago, and remember this next time.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/