lkml.org 
[lkml]   [1996]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Starting kernel threads (or something like that)
Date
tpeters <tpeters@pris.bc.ca> wrote:
> First question: When the kernel loads, what is the _FIRST_ operation it
> does after initializing itself? (I'm looking at replacing _EVERYTHING_
> below the kernel and want an idea of where I start)

The Kernel is generating a process with the PID1 owned by root, assiciated
with /dev/tty1 and starting init (look in linux/init/main.c/init(). If you
use initrd, the Kernel will execute /linuxrc.

The best way to make a xterminal out of a linux box is to start the X-Server
from the inittab, the second best is to replace /sbin/init with a
program/script that handles all sysinitialisation and then executes the
X-Server.

> And a second question: How difficult is it to start a daemon that hooks into
> a kernelspace driver and handles, say, consoles?

Its very easy to do that in Userspace, there is no need to reinvent the
wheel. If you dont run a getty, there will be no consoles the user can
switch to. You can then genrate manually.

Greetings
Bernd
--
(OO) -- Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de --
( .. ) ecki@lina.{inka.de,ka.sub.org} http://home.pages.de/~eckes/
o--o *plush* 2048/93600EFD eckes@irc +4972573817 *plush*
(O____O) If privacy is outlawed only Outlaws have privacy


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