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
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA