Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101850561
D34296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
572 B
Referenced Files
None
Subscribers
None
D34296.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/asm/atomic64.h b/sys/compat/linuxkpi/common/include/asm/atomic64.h
--- a/sys/compat/linuxkpi/common/include/asm/atomic64.h
+++ b/sys/compat/linuxkpi/common/include/asm/atomic64.h
@@ -52,6 +52,12 @@
#define atomic64_dec_return(v) atomic64_sub_return(1, (v))
#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
+static inline int64_t
+atomic64_fetch_add(int64_t i, atomic64_t *v)
+{
+ return (atomic_fetchadd_64(&v->counter, i));
+}
+
static inline int64_t
atomic64_add_return(int64_t i, atomic64_t *v)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 5, 4:35 PM (10 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14470041
Default Alt Text
D34296.diff (572 B)
Attached To
Mode
D34296: linuxkpi: Add atomic64_fetch_add
Attached
Detach File
Event Timeline
Log In to Comment