Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2024 21:32:59 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 06db4f5b6232 - stable/14 - LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h
Message-ID:  <202402172132.41HLWxmG020743@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=06db4f5b62323fe6a8a5755168d4c15ac3dcdd4f

commit 06db4f5b62323fe6a8a5755168d4c15ac3dcdd4f
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-12-24 08:19:59 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-02-17 20:58:37 +0000

    LinuxKPI: Add xa_(un)lock_irq to linux/xarray.h
    
    On FreeBSD they are equal to non-irq version.
    
    Sponsored by:   Serenity Cyber Security, LLC
    Reviewed by:    manu, bz
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D42803
    
    (cherry picked from commit 66f9a98335dcc2a3c1eead0d80ccc9fee12bbb31)
---
 sys/compat/linuxkpi/common/include/linux/xarray.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/xarray.h b/sys/compat/linuxkpi/common/include/linux/xarray.h
index e0a97a5b7871..d293a8f7c2a3 100644
--- a/sys/compat/linuxkpi/common/include/linux/xarray.h
+++ b/sys/compat/linuxkpi/common/include/linux/xarray.h
@@ -95,6 +95,9 @@ void *__xa_next(struct xarray *, unsigned long *, bool);
 #define	xa_erase_irq(xa, index) \
 	xa_erase((xa), (index))
 
+#define	xa_lock_irq(xa)		xa_lock(xa)
+#define	xa_unlock_irq(xa)	xa_unlock(xa)
+
 #define	xa_lock_irqsave(xa, flags) \
 	do { \
 		xa_lock((xa)); \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402172132.41HLWxmG020743>