* David Wheeler (dwheelerat_private) wrote: > James Morris said: > > xchg() may be useful in some situations. > > The name of the function certainly sounds very promising; > an atomic exchange operation that can swap pointers > would be just ducky. It's actually overkill - all I need > is atomic assigment - but it'll certainly solve the problem. heh, well it's less overhead than the spin lock. > But where is this xchg() operation? A recursive grep for > "xchg" found stuff in arch/ppc, but that's it in > linux 2.5.26. Do you mean an xchg operation for some > specific CPU architecture? If so, that's less desirable - > I'd like an operation that ports to anything if possible. look in arch specific system.h. typically a macro. thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net _______________________________________________ linux-security-module mailing list linux-security-moduleat_private http://mail.wirex.com/mailman/listinfo/linux-security-module
This archive was generated by hypermail 2b30 : Wed Jul 24 2002 - 11:31:21 PDT