Re: Understanding kexts in the early boot process
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/zu4Acc/xe5W5OB3/bvVFw53mXJJUee85nb7/DgOZJI=; b=B8CRRAKi1nZznN0PYVjs7pUeNYuVWUA6wGiCf8jdYr6tkhSBDUqsfMFy/0Eo8EbqS7 8+E8lARjMyYujaBM3d6FU2athDd3tkz2td2aeFI6+vhr4b5j43I95Xypn5n1XfbwFeXS GRrHrIK6Ozd5nEcgRU+7RxFOz45apNRsTNs1w= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=i2ZzHGfVP/gKn+npMMaD1E/48eFB1Nw5yWQjaSz7hRTobPb+hVlPlcCaqrsxMmKCH7 TSis0i/RLzXUNGBzAS7+sqhFvJ0BKNxTKqThRrpSVceCIQKoqs/TfyPYAqvaqpz+5hzl 0gyH1g0nqk4VuAXdByPkxAR+ujIMD5AHDHKdE= Nik,
Again some confusion in terminology. The boot loader copies kexts into memory that the kernel knows how to find, it does not load kexts (in the sense of getting them actually running, as it does for the kernel). To "load a kext" is a pretty involved process, which varies between early boot and when kextd starts, of which linking is only a part.
I meant "load" in its more raw sense, i.e. read from disk into memory. So, if I understand you right, the boot loader reads the kexts into memory and passes a pointer to them to the kernel. The kernel then iterates over the kexts, executing their code. I just try to understand when the files get read and when they get executed. If it is how I just suggested, then this means that the boot loader is the authority in selecting all the kexts for the kernel, and the kernel has no choice than to work with those - if they're not sufficient, the kernel may fail to boot because the kernel does _not_ read essential kexts on its own. Correct? -- Thomas Tempelmann, http://www.tempel.org/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Thomas Tempelmann