Date: Thu, 23 Apr 2020 13:30:11 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Alexander Leidinger <Alexander@leidinger.net> Cc: current@freebsd.org Subject: Re: nfslockd kernel module fails to load Message-ID: <20200423103011.GH2522@kib.kiev.ua> In-Reply-To: <20200423115330.Horde.NW6XdOo4LdF1H7Djzj2V_JM@webmail.leidinger.net> References: <20200423080809.Horde.Bo3hS63ATAG-0MzxdGgLyhI@webmail.leidinger.net> <20200423061908.GE2522@kib.kiev.ua> <20200423083008.Horde.pIybBPGLYf5eoV_K5M6O6w7@webmail.leidinger.net> <20200423070412.GF2522@kib.kiev.ua> <20200423094602.Horde.CSyNCDCsORIorqv2R743XCg@webmail.leidinger.net> <20200423092248.GG2522@kib.kiev.ua> <20200423115330.Horde.NW6XdOo4LdF1H7Djzj2V_JM@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 23, 2020 at 11:53:30AM +0200, Alexander Leidinger wrote: > Quoting Konstantin Belousov <kostikbel@gmail.com> (from Thu, 23 Apr 2020 > 12:22:48 +0300): > > > On Thu, Apr 23, 2020 at 09:46:02AM +0200, Alexander Leidinger wrote: > > > > > > Quoting Konstantin Belousov <kostikbel@gmail.com> (from Thu, 23 Apr 2020 > > > 10:04:12 +0300): > > > > > > MODULE_DEPEND() handles symbol namespaces. > > > > > > Since when is this the case (rough figure would be enough if someone knows > > > it without looking it up)? > > > > It is definitely so from the 5.x times, but I highly suspect that this was > > Thanks for the info. > > > the feature of 'new' modules from the beginning. > > I do not remember this behavior in 3.0. I remember cases where a module > didn't had a dependency and manually loading the dependency before was > enough. Memories alter over time, so I may be wrong... > I wouldn't be surprised if this behavior was introduced more in the > timeframe around amd64 or the reworking of module loading a while after > amd64 (may this is what you refer to as "new modules"). No, it predates amd64 for many years. There were 'lkm' modules, and dfr then implemented 'kld' modules, I think around 1998, mostly confirmed by svn log for link_elf.c. Namespace restriction for symbol lookup for dependencies only was in kld from the start.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200423103011.GH2522>