completions in the 2.4 kernel

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

 



  i have a 2.4 kernel-based system, with two loadable modules.  the
first module sets up some work to do, initializes a "struct
completion", calls a routine in the second module with the work to do
and the address of the completion, then immediately waits on that
completion upon return from the second module.

  the call to the second module was only to hand over some work to do
when it's convenient, at which point that second module should, upon
completion, complete the completion and allow the first module to
proceed.

  my question -- in the 2.4 kernel, when that first module blocks on
the completion, what happens to it?  does it immediately get moved off
of the processor?  as in, does it get pre-empted since it clearly
can't progress any further?  i hope that question made sense.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

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