Re: clarification - kernel programming

From: Tigran Aivazian (tigran@sco.COM)
Date: Thu Mar 02 2000 - 08:32:24 EST


Hi,

You asked:

> I would like to create a separate process (given the filename of the
> binary), WITHIN A SYSTEM CALL.

user processes are just that - user processes, i.e. created by userspace
program doing fork(2) (or clone) system call. If you want to create a
kernel helper thread use kernel_thread() function.

Have a look at fs/buffer.c or mm/vmscan.c which have examples of creating
kernel threads using kernel_thread().

Regards,
------
Tigran A. Aivazian | http://www.sco.com
Escalations Research Group | tel: +44-(0)1923-813796
Santa Cruz Operation Ltd | http://www.ocston.org/~tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:12 EST