lkml.org 
[lkml]   [2023]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH v2 0/2] Lock and Pointer guards
By popular demand, a new and improved version :-)

New since -v1 ( https://lkml.kernel.org/r/20230526150549.250372621@infradead.org )

- much improved interface for lock guards: guard() and scoped () { }
as suggested by Linus.
- moved the ';' for the 'last' additional guard members into the definition
as suggested by Kees.
- put __cleanup in the right place with the suggested comment
as suggested by Kees and Miguel
- renamed the definition macros DEFINE_LOCK_GUARD_[012] to indicate
the number of arguments the lock function takes
- added comments to guards.h
- renamed pretty much all guard types

Again compile and boot tested x86_64-defconfig


\
 
 \ /
  Last update: 2023-05-26 23:02    [W:0.398 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site