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 8759635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:51:21+00:00 2026-06-13T14:51:21+00:00

I have a Linux kernel module that runs every 10 seconds and scans whether

  • 0

I have a Linux kernel module that runs every 10 seconds and scans whether there are any resource-hogging processes. I then need to suspend them for a minute (i.e. six loops through the code) and let them run again afterwards. I have already written the code to check for the condition, and have all the appropriate task_struct pointers.

The question is, how do I suspend a task, given its task_struct pointer? And later on, how do I resume that task?

  • 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-06-13T14:51:22+00:00Added an answer on June 13, 2026 at 2:51 pm

    You could suspend the process by sending it STOP signal, then resume it by sending it a CONT signal; perhaps via kill_pid(task_pid(task_struct), SIGSTOP, 1) and kill_pid(task_pid(task_struct), SIGCONT, 1) for example.

    That approach is not perfect. For example, another process can keep such a process running by sending it CONT signals, unless you also block CONT signals during the time-out period.

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

Sidebar

Related Questions

On an x86 system, I have a Linux kernel module (watcher module) that gets
I am a new comer to Linux Kernel Module programming. From the material that
I have been trying to port few linux drivers and realized that there is
I have a problem loading a kernel module, there is a large data structure,
I have written a Linux kernel-module to act as an FPGA driver for a
I want to write a little Linux Kernel Module that can show me the
In one of my sample Linux kernel module, I have a variable Device_Open declared
I writing a linux kernel module that does some work with /proc... I'm trying
I have some custom hardware that uses a kernel module called foo.ko . This
I have written a sample hello.ko kernel module: #include <linux/module.h> /* Needed by all

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.