Re: Worker queue does not have userspace but process context only?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter ...
In LDD3, I read that "worker queue does not have user space, but does
have a process context."

I am quite confused here - as I thought that given a process context,
u can get the mm_struct address space defined per task, and therefore
derive the userspace memory inside the linked list of memory?
Therefore, the sentence from LDD3 quoted above implied that there must
be some processes that does NOT have any userspace component -
correct?   And examples or these are?

Worker thread ( I believe it's the correct term) is an example of kernel thread. Every kernel thread itself is a kind of process, thus it has process context. Technically, it means it has task_struct like normal process, but borrows the mm_struct of the last running process.

Why it is said it doesn't have user space? Two things:
1. It doesn't have its own mm_struct
2. It doesn't access user space. Kernel threads only operate and access kernel address space.

regards,

Mulyadi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux