• Linux memory barriers API

    From [email protected]@21:1/5 to All on Thu Jun 17 08:53:23 2021
    The Linux memory barrier API which includes the mb(), wmb() etc functions should be in /usr/include/asm/system.h but on my Debian install there's
    no sign of them. Does this API need to be installed seperately or has it been replaced by something else?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rainer Weikusat@21:1/5 to [email protected] on Thu Jun 17 15:33:16 2021
    [email protected] writes:
    The Linux memory barrier API which includes the mb(), wmb() etc functions should be in /usr/include/asm/system.h but on my Debian install there's
    no sign of them. Does this API need to be installed seperately or has it been replaced by something else?

    The kernel include file defining these is called barrier.h But that's
    an internal kernel header and not part of any API.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Rainer Weikusat on Thu Jun 17 14:35:22 2021
    On Thu, 17 Jun 2021 15:33:16 +0100
    Rainer Weikusat <[email protected]> wrote:
    [email protected] writes:
    The Linux memory barrier API which includes the mb(), wmb() etc functions
    should be in /usr/include/asm/system.h but on my Debian install there's
    no sign of them. Does this API need to be installed seperately or has it been

    replaced by something else?

    The kernel include file defining these is called barrier.h But that's
    an internal kernel header and not part of any API.

    Ok, thanks. Thats a shame, obviously I misunderstood, I thought it was a userspace API.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Scott Lurndal@21:1/5 to [email protected] on Thu Jun 17 15:34:56 2021
    [email protected] writes:
    The Linux memory barrier API which includes the mb(), wmb() etc functions >should be in /usr/include/asm/system.h but on my Debian install there's
    no sign of them. Does this API need to be installed seperately or has it been >replaced by something else?

    Why not use the standard gcc extensions?

    The kernel functions were never intended to be used by anything other
    than the kernel.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Scott Lurndal on Thu Jun 17 15:53:12 2021
    On Thu, 17 Jun 2021 15:34:56 GMT
    [email protected] (Scott Lurndal) wrote:
    [email protected] writes:
    The Linux memory barrier API which includes the mb(), wmb() etc functions >>should be in /usr/include/asm/system.h but on my Debian install there's
    no sign of them. Does this API need to be installed seperately or has it been >>replaced by something else?

    Why not use the standard gcc extensions?

    I didn't know there were any.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)