Date: Wed, 23 Feb 2005 16:44:33 +0000 (UTC) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/ndis ntoskrnl_var.h subr_ntoskrnl.c Message-ID: <200502231644.j1NGiXoN065475@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2005-02-23 16:44:33 UTC
FreeBSD src repository
Modified files:
sys/compat/ndis ntoskrnl_var.h subr_ntoskrnl.c
Log:
Implement IoCancelIrp(), IoAcquireCancelSpinLock(), IoReleaseCancelSpinLock()
and a machine-independent though inefficient InterlockedExchange().
In Windows, InterlockedExchange() appears to be implemented in header
files via inline assembly. I would prefer using an atomic.h macro for
this, but there doesn't seem to be one that just does a plain old
atomic exchange (as opposed to compare and exchange). Also implement
IoSetCancelRoutine(), which is just a macro that uses InterlockedExchange().
Fill in IoBuildSynchronousFsdRequest(), IoBuildAsynchronousFsdRequest()
and IoBuildDeviceIoControlRequest() so that they do something useful,
and add a bunch of #defines to ntoskrnl_var.h to help make these work.
These may require some tweaks later.
Revision Changes Path
1.25 +61 -2 src/sys/compat/ndis/ntoskrnl_var.h
1.52 +199 -3 src/sys/compat/ndis/subr_ntoskrnl.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502231644.j1NGiXoN065475>
