Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/fs/smbfs



Jaromir Dolecek <jdolecek%netbsd.org@localhost> writes:

> Bill Studenmund wrote:
>> On Wed, 2 Apr 2003, Jaromir Dolecek wrote:
>> > Log Message:
>> > when loaded via LKM, need to malloc_type_{attach|detach} used malloc
>> > types on load/unload appropriately
>> > XXX this should really be automated somehow
>> 
>> Why not put this in the LKM code that loads the FS?
>
> Do you mean lkm/vfs/smbfs/lkminit_vfs.c or the generic VFS LKM load code?
>
> I'd rather keep it in fs/smbfs/smbfs_vfsops.c, so that it's
> less likely to get out of sync with rest of smbfs code.
>
> If the latter, is there any way for the (kernel) LKM load code to
> determine which malloc types the LKM uses?

Well, the modload could (by looking in the section) tell the kernel what
malloc types (the pointer to the malloc types in the loaded image or
something) are needed so the kernel can register them.

mmmmm (the functionallity of) FreeBSDs KLD.

Love



Home | Main Index | Thread Index | Old Index