John Baldwin wrote: > > What I mean there is that there is a simple refcount_*() API wrapper in > sys/refcount.h that uses atomic ops on ints to safely manage reference > counts, and I would prefer the code to use refcount_*() instead of > atomic_*() directly if it fits as atomics can be tricky to manage > sometimes. > I need to think on this a bit.. the code is common to several platforms.. and this will take a bit of fore-thought to make sure we get it right if we move to something else besides the atomic_xxxx ops. There are also some where we do similar things to what the mbuf cluster freeing does with atomic_cmpset... etc. Simple refcnt's won't help there.. there are others that are not so... let me look through the macro's and see what I can come up with :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 <or> 803-317-4952 (cell)Received on Tue Nov 07 2006 - 16:39:25 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC