Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 29 Nov 2016 16:47:11 +0100
From: Peter Zijlstra <>
To: "Reshetova, Elena" <>
CC: "" <>,Greg KH <>,Kees Cook <>,"" <>,Boqun Feng <>,Hans Liljestrand <>,David Windsor <>,"" <>,"" <>
Subject: RE: Conversion from atomic_t to refcount_t: summary of issues

On 29 November 2016 16:35:15 CET, "Reshetova, Elena" <> wrote:
>So, could we agree on the following additions that are needed to
>refcount_t API:
>- refcount_long_t and all related functions
>- refcount_add(), refcount_sub(), refcount_sub_and_test()
>- refcount_dec_return(), refcount_inc_return()
>- refcount_dec_if_one()
>With the above set we can hopefully convert almost everything we
>already saw and then we can decide what to do with remaining extreme
>Peter, if you would be able to send the new patch providing the above
>API, it would be great!

I'm not convinced on the return variants. I'll have to look at a number of usage sites to determine wth  they're doing. (Or someone else needs to and explain it here)

Also, I'm ill atm, so I'm not particularly productive.

Also, it would be very good to hear other opinions on the add/sub thing, last time they came up tglx in particular hated them.
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.