task deactivation

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Sun Apr 26 11:34:22 EDT 2015


On Sat, 25 Apr 2015 19:17:13 +0200, Mustafa Hussain said:

> what the function deactivate_task() exactly do ?
> thanks in advance.

void deactivate_task(struct rq *rq, struct task_struct *p, int flags)
{
        if (task_contributes_to_load(p))
                rq->nr_uninterruptible++;

        dequeue_task(rq, p, flags);
}

Which part do you not understand?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150426/d43d6f3c/attachment.bin 


More information about the Kernelnewbies mailing list