[lkml]   [2002]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Query about initramfs and modules
H. Peter Anvin writes:
> Followup to: <>
> By author: David Garfield <>
> In newsgroup:
> >
> > Agreed. However, this work could easily be performed by an insmod
> > variant that takes a module, a "", and a kernel image, and
> > produces a cpio file as output instead of passing the data to the
> > kernel for immediate processing. The kernel mechanism would then only
> > need to unpack the pieces, relocate, and make the system calls.
> >
> How do you know where the running kernel will be allocating address
> space for the module?

I did say "relocate". OK, so maybe the correct order is: partial
unpack, first system call, remaining unpack, relocate, second system

Actually, the hard part is intermodule dependencies. For that, the
issue becomes where the running kernel allocated address space for the
previous modules. I suppose the insmod variant could process a stream
of modules for loading, but then relocation starts including
double-relocation for a pair of modules... OK, maybe it is too
complex for the kernel.

--David Garfield
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:23    [W:0.048 / U:7.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site