Re: Sharing a Semaphore with a application.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



So have an IOCTL you call instead of the semaphore and have the semaphore in
the kernel, the cost of the kernel transition is going to be the big ticket
item, the cost of doing this with an IOCTL versus calling into the kernel
for a wait for the event will be noise. And as Doron pointed out there are
advantages.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply



"Frank The Tank" <FrankTheTank@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:82FA9F5C-7445-43F5-AEA8-C9B0AD05B62A@xxxxxxxxxxxxxxxx
> Thanks Doron
> Multiple I/O req. would not work for me in this application.This event is
> my
> way of getting a hardware interupt up as a trigger for an application
> thread
> to do its job. It is a continous interupt happening sometimes over 500
> times
> a minute. This worked very good until I pushed the system so that every
> once
> in a while the app. thread took to long and an event trigger was lost
> forever. A semaphore would of been a easy way to have the thread catch up
> (
> keeping a buffer at the end of a fiber cable at the correct level). I want
> to
> find a way to do this without polling the device.
>


.



Relevant Pages

  • Re: [announce 7/7] fbsplash - documentation
    ... > for calling the helper. ... >> userspace helper to display a nice picture while the kernel is still ... >> console semaphore is already held so we have to avoid trying to acquire ... does an ioctl and we're back in the kernel.. ...
    (Linux-Kernel)
  • Re: Sleeping thread not receive signal until it wakes up
    ... of the thread will keep calling IOCTL to get information from the ... kernel and will be blocked if there is no new information. ... and register a SIGALRM handler in the thread by using sigaction. ... the ISR routine when interrupt happens, ...
    (Linux-Kernel)
  • Re: [patch for 2.6.26 0/7] Architecture Independent Markers
    ... as far as the assembly for the markers in the fast path is ... cache footprint of the kernel quite substantially, ... slowpath cost. ... I like your tracing filters interface. ...
    (Linux-Kernel)
  • Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
    ... > And no standard hardware allows you to do that in hw, ... in case it wasn't clear: the cost of these kinds of things in the ... The biggest cost of almost everything in the kernel these days is the ... So a remappable kernel tends to be different from a remappable user ...
    (Linux-Kernel)
  • Re: Sleeping thread not receive signal until it wakes up
    ... >>> of the thread will keep calling IOCTL to get information from the ... >>> kernel and will be blocked if there is no new information. ... >>> and register a SIGALRM handler in the thread by using sigaction. ...
    (Linux-Kernel)