diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-02-06 14:00:44 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-02-06 14:00:44 +0000 |
commit | 07db1f36848c008efb7ab6b37e199212560833ae (patch) | |
tree | f5af703abfb5c6864ac54cf4d69fb9291ee2a7f1 | |
parent | baff81958c8efef2a44f4b769743eeb7101bee9e (diff) | |
download | src-07db1f36848c008efb7ab6b37e199212560833ae.tar.gz src-07db1f36848c008efb7ab6b37e199212560833ae.zip |
linux(4): Attach netlink on i386.
Discussed with: melifaro
MFC after: 3 days
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 3 | ||||
-rw-r--r-- | sys/modules/linux/Makefile | 1 |
2 files changed, 4 insertions, 0 deletions
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 |