Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

Implementing reply semantics to communication ports the right way

brendanheinonenbrendanheinonen Member Posts: 4

I'm designing "reply" functionality to the kernel side of minifilter communication ports. This is a bit challenging because messages are received async. I'm sure there are plenty of ways that would get it working, but I'm trying to design it the correct way.

My current thinking is to queue up messages in a worker thread. If a message is sent that is expecting a reply, an event object is created, sent to the message callback, and waited on (with a reasonable timeout). When the message callback receives its next message, it copies the buffer and alerts the event.

Is this a solid design?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Writing WDF Drivers 13 April 2020 OSR Seminar Space & ONLINE
Developing Minifilters 20 Apr 2020 OSR Seminar Space & ONLINE
Internals & Software Drivers TBD Dulles, VA