• Linux memory barriers API

    From MrSpook_e0mt@hszpo62mi.com@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 MrSpook_e0mt@hszpo62mi.com on Thu Jun 17 15:33:16 2021
    MrSpook_e0mt@hszpo62mi.com 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 MrSpook_mt5b@81nmly1p0vxrc.net@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 <rweikusat@talktalk.net> wrote:
    MrSpook_e0mt@hszpo62mi.com 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 MrSpook_e0mt@hszpo62mi.com on Thu Jun 17 15:34:56 2021
    MrSpook_e0mt@hszpo62mi.com 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 MrSpook_w76vdHph@4dg.tv@21:1/5 to Scott Lurndal on Thu Jun 17 15:53:12 2021
    On Thu, 17 Jun 2021 15:34:56 GMT
    scott@slp53.sl.home (Scott Lurndal) wrote:
    MrSpook_e0mt@hszpo62mi.com 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)