Compiling code that uses kernel headers
Arjan van de Ven
arjanv at redhat.com
Fri Jan 7 11:04:02 UTC 2005
On Thu, 2005-01-06 at 12:47 -0700, Stephen J. Smoogen wrote:
> I am working with the libpcap + ringbuffer and trying to get it moved
> from Debian to Red Hat. The Debian/Slackware code depends upon
> /usr/include/linux/system.h which has the kernel version of asm.h
> linked to if for the platform. For i386 this is asm-i386.h which has
> the macro mb(); that the pcap ringbuffer code relies on to make sure
> some obscure race conditions are taken of. [I do not know what the
> race condition is beyond it talking to the kernel half of the
> ringbuffer.]
fix the app. mb() is not an exported feature from the kernel (headers)
to userspace, the way the kernel implements that is *INTERNAL* and may
be privileged to ring 0.
Applications need to do their own barriers, and I suspect glibc provides
functionality for this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20050107/7161dd0e/attachment.sig>
More information about the fedora-devel-list
mailing list