Re: sosend() and mbuf



Hi,

* Maslan <maslanbsd@xxxxxxxxx> wrote:
man kthread says:
The kthread_create() function is used to create a kernel thread. The new
thread shares its address space with process 0, the swapper process, and
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
runs in kernel mode only.

However, when i checked the pid & tid of the new created thread it was
not the same as the parent nor as the proc0 & thread0

I am not sure, but sharing another process's address space doesn't have
to imply it shares the same pid, right?

--
Ed Schouten <ed@xxxxxxxx>
WWW: http://80386.nl/

Attachment: pgpVMaAKuoQ5l.pgp
Description: PGP signature



Relevant Pages

  • Re: sosend() and mbuf
    ... The kthread_createfunction is used to create a kernel thread. ... thread shares its address space with process 0, the swapper process, and ... when i checked the pid & tid of the new created thread it was ...
    (freebsd-hackers)
  • Re: sosend() and mbuf
    ... The kthread_createfunction is used to create a kernel thread. ... thread shares its address space with process 0, the swapper process, and ... when i checked the pid & tid of the new created thread it was ... do you have a kproc man page? ...
    (freebsd-hackers)
  • Re: sosend() and mbuf
    ... man kthread says: ... The kthread_createfunction is used to create a kernel thread. ... thread shares its address space with process 0, the swapper process, and ...
    (freebsd-hackers)
  • Re: Which process is associated with process ID 0 (swapper)
    ... kernel threads have PIDs greater than 1. ... Linux really has swapper process;) ... pid 0) in oops, ... The first SYN packet of ...
    (Linux-Kernel)