On Sun, 22 Dec 2002 00:51:41 +0100 (MEZ), Ruediger Ihle wrote:
>>I found SemRequest and SemClear to be the functions that i am searching for. But
>what use is
SemHandle?
>>The documentation doesn't state what the sem_key_low and sem_key_high is (means: I'm
>too dumb to
>>understand it). Is this just some random number? How can I create a semamorph-handle
>for use with
>>SemClear/SemRequest?
>Assuming you are talking about a semaphore, you don't need SemHandle in your case.
>Just put a
>static ULONG variable in your driver's data segment and use the virtual address of
>this variable as
>sem_key like this:
Would it also work, when I use the semamorph from both Ring-0/Ring-3?
(Not needed, I'm just curious, CreateHWDevice/DestroyHWDevice will be limited to
16-bit/Ring-0 and
task-time only, enumeration begins on USB at INITCOMPLETE anyway, on the other side:
device searching
is possible on both rings, task/init/int).
>SemHandle is used, to allow your driver to access a (16-bit) semaphore created by an
>application.
>Don't confuse the terms "in-use" and "owned", when reading the documetation...
Well the documentation is a little bit vague about it. It doesn't really offer any
example to know how it works. I
personally missed some sort of "AllocSem" call. Thanx.
cu, Kiewitz
-----------
To unsubscribe yourself from this list, send the following message
to [EMAIL PROTECTED]
unsubscribe acpi-os2
end