I am using fedora 10 with version of 2.6.27.5-117.fc10.x86_64 #1 SMP.
I am looking for the system head file where memory barrier functions
are declared.
Thanks,
dbtouch
There is no memory barrier API provided by default. If you want one,
you have to code it. On x86-64, this is sufficient:
#define membar() __asm__ __volatile__("" : : : "memory")
DS
Hi, DS
Thanks.
What about smp_mb() mentioned in this article? Where I can find its
definition?
> What about smp_mb() mentioned in this article? Where I can find its
> definition?
Are you trying to write kernel code or user space code?
DS
I am trying to modify libpcap and I need memory barrier function.
dbtouch