Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6831561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:45:06+00:00 2026-05-26T22:45:06+00:00

Some processes, and in particular some daemons, can run in either kernel space or

  • 0

Some processes, and in particular some daemons, can run in either kernel space or user space (sort of like how a user can run in normal or superuser mode). Is there a simple way to find out which it is for any given process (daemon)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:45:07+00:00Added an answer on May 26, 2026 at 10:45 pm

    Typically (in monolithic kernels, anyway), processes can run in both user space and kernel space, depending on what they’re doing. The user code will run in user space until it requires kernel services, i.e. a kernel system call. The program will then cause a trap which switches the CPU to protected mode where the kernel code executes the system call (e.g. to read or write a file). Once that is complete, the kernel switches back to user mode and the user application continues running. At all times it is the user process that’s running; it’s just running user code or kernel code, as appropriate.

    EDIT

    At least on Linux, I don’t think there’s any way to tell if a kernel-only process will ever drop to user space; the kernel is allowed to do anything it wants, after all. But, you can use some heuristics to make an educated guess. For example, pmap will tell you what user-space memory is mapped in for the process; no memory is pretty strong evidence (perhaps incontrovertible) that it’s a kernel task. In the same way, if the VSZ field in ‘ps l’ is 0, it means the task has no user-space memory allocated. If you’re just interested in whether the task is in the kernel at this moment in time, the WCHAN field in ‘ps l’ will give you a hint; if it’s something other than -, it’s in the kernel, if it’s -, then it’s likely in user space, but I’m not sure if it could also mean that it’s just been preempted while in kernel space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database client application. Some people will run multiple instances (i.e. processes)
Possible Duplicate: Can I tell Linux not to swap out a particular processes' memory?
Why do some processes started at the command line on my Windows machine block/buffer
I wrote a program that forks some processes with fork(). I want to kill
i have a command to kill some processes as below: kill -9 `psu|grep MF1pp|grep
I am working on a debian system and have to communicate some processes so
I'm developing a script generator to automatize some processes at work. It has a
In my Windows XP Task Manager, some processes display a higher value in the
When using GetModuleFileNameEx to query the image path of a running process, some processes
Suppose I have a class that processes some data: class SomeClass { public: void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.