Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162626607
D56780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
698 B
Referenced Files
None
Subscribers
None
D56780.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/module.h b/sys/compat/linuxkpi/common/include/linux/module.h
--- a/sys/compat/linuxkpi/common/include/linux/module.h
+++ b/sys/compat/linuxkpi/common/include/linux/module.h
@@ -136,9 +136,14 @@
#define module_exit_order(fn, order) \
SYSUNINIT(fn, SI_SUB_OFED_MODINIT, (order), _module_run, (fn))
-#define module_get(module)
-#define module_put(module)
-#define try_module_get(module) 1
+static inline void module_get(struct module *module) {}
+static inline void module_put(struct module *module) {}
+
+static inline bool
+try_module_get(struct module *module)
+{
+ return (true);
+}
#define postcore_initcall(fn) module_init(fn)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 5:46 AM (15 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32698955
Default Alt Text
D56780.diff (698 B)
Attached To
Mode
D56780: linuxkpi: Implement `module_*()` APIs as static functions
Attached
Detach File
Event Timeline
Log In to Comment