Re: Schedule() call in driver context.

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

 



> My understanding is the kernel uses interrupts to count the time and to
> trigger timer routines - but these routine are executed in the context they
> were registered. A timer created by a process executes in process
> context. A driver registered timer executes in kernel context (not interrupt).
> Am I wrong?

You need to be clear with yourself on the meaning and the
types/differences of different contexts first, because its really
confusing when you say "kernel context (not interrupt)".

> properly. If there is some data to be read from the device it stores it in a
> circular buffer.

If you're doing it that way then its fine and would work. I agree with
your method, but I don't with your understanding of a context. It
would be good to read up a little more on this and then come back and
ask more questions.

Thanks,
-Joel

--
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