Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174133683
D25943.id75371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
D25943.id75371.diff
View Options
Index: head/sys/compat/linuxkpi/common/include/linux/bitops.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ head/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -275,6 +275,13 @@
#define test_bit(i, a) \
!!(READ_ONCE(((volatile const unsigned long *)(a))[BIT_WORD(i)]) & BIT_MASK(i))
+static inline void
+clear_bit_unlock(long bit, volatile unsigned long *var)
+{
+ clear_bit(bit, var);
+ wmb();
+}
+
static inline int
test_and_clear_bit(long bit, volatile unsigned long *var)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 1, 8:16 PM (9 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40038787
Default Alt Text
D25943.id75371.diff (586 B)
Attached To
Mode
D25943: linuxkpi: Add clear_bit_unlock
Attached
Detach File
Event Timeline
Log In to Comment