mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
Add linux kernel module support
Setup linux kernel module support, this includes: - zfs context for kernel/user - kernel module build system integration - kernel module macros - kernel module symbol export - kernel module options Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -1454,3 +1454,19 @@ zap_count_write(objset_t *os, uint64_t zapobj, const char *name, int add,
|
||||
zap_unlockdir(zap);
|
||||
return (err);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
EXPORT_SYMBOL(zap_add);
|
||||
EXPORT_SYMBOL(zap_create);
|
||||
EXPORT_SYMBOL(zap_cursor_advance);
|
||||
EXPORT_SYMBOL(zap_cursor_fini);
|
||||
EXPORT_SYMBOL(zap_cursor_init);
|
||||
EXPORT_SYMBOL(zap_cursor_init_serialized);
|
||||
EXPORT_SYMBOL(zap_cursor_move_to_key);
|
||||
EXPORT_SYMBOL(zap_cursor_retrieve);
|
||||
EXPORT_SYMBOL(zap_cursor_serialize);
|
||||
EXPORT_SYMBOL(zap_lookup);
|
||||
EXPORT_SYMBOL(zap_lookup_norm);
|
||||
EXPORT_SYMBOL(zap_remove);
|
||||
EXPORT_SYMBOL(zap_update);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user