git: 07db1f36848c - main - linux(4): Attach netlink on i386.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Feb 2023 14:01:04 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=07db1f36848c008efb7ab6b37e199212560833ae
commit 07db1f36848c008efb7ab6b37e199212560833ae
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-02-06 14:00:44 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-02-06 14:00:44 +0000
linux(4): Attach netlink on i386.
Discussed with: melifaro
MFC after: 3 days
---
sys/i386/linux/linux_sysvec.c | 3 +++
sys/modules/linux/Makefile | 1 +
2 files changed, 4 insertions(+)
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 9e2939ee4213..b16e32ac62f1 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -912,6 +912,7 @@ linux_elf_modevent(module_t mod, int type, void *data)
linux_ioctl_register_handler(*lihp);
linux_dev_shm_create();
linux_osd_jail_register();
+ linux_netlink_register();
stclohz = (stathz ? stathz : hz);
if (bootverbose)
printf("Linux ELF exec handler installed\n");
@@ -932,6 +933,7 @@ linux_elf_modevent(module_t mod, int type, void *data)
if (error == 0) {
SET_FOREACH(lihp, linux_ioctl_handler_set)
linux_ioctl_unregister_handler(*lihp);
+ linux_netlink_deregister();
linux_dev_shm_destroy();
linux_osd_jail_deregister();
if (bootverbose)
@@ -952,4 +954,5 @@ static moduledata_t linux_elf_mod = {
};
DECLARE_MODULE_TIED(linuxelf, linux_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);
+MODULE_DEPEND(linuxelf, netlink, 1, 1, 1);
FEATURE(linux, "Linux 32bit support");
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index db87f66474b5..ffb19782c225 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -50,6 +50,7 @@ VDSODEPS=linux_vdso_gettc_x86.inc
SRCS+= linux${SFX}_support.S
.else
SRCS+= linux_copyout.c
+SRCS+= linux_netlink.c
.endif
DPSRCS= assym.inc linux${SFX}_genassym.c