[LITMUS^RT] A global variable definition

Hang Su hangsu.cs at gmail.com
Fri Feb 17 17:00:52 CET 2012


Thanks for your tips. I will check that book.

On Fri, Feb 17, 2012 at 9:50 AM, Glenn Elliott <gelliott at cs.unc.edu> wrote:

> Hi Hang Su,
>
> "current" is a Linux thing.  "current" is a per-processor global variable
> (it may actually be a macro, but it functions as a global variable) that
> points the current process (aka task_struct) that is scheduled on the
> processor that is executing the given code path.
>
> If you are going to be doing a lot of Linux kernel development, I highly
> recommend that you get a copy of "Understanding the Linux Kernel" by Bovet
> & Cesati (published by O'Reilly).  It has all this sort of information and
> is a great reference.
>
> -Glenn
>
>
> On Feb 17, 2012, at 10:39 AM, Hang Su wrote:
>
> Hi All:
>
> I am finding the definition of a global variable* current* used inside
> scheduler_tick() under /kernel/sched.c. But I did not get where it is.
>
> Thanks.
> _______________________________________________
> litmus-dev mailing list
> litmus-dev at lists.litmus-rt.org
> https://lists.litmus-rt.org/listinfo/litmus-dev
>
>
>
> _______________________________________________
> litmus-dev mailing list
> litmus-dev at lists.litmus-rt.org
> https://lists.litmus-rt.org/listinfo/litmus-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20120217/ca8550dc/attachment.html>


More information about the litmus-dev mailing list