Write queue after connect windows

It's really not possible for it to be NULL. You are pointing somewhere inside the write request and QUEUE_DATA will just move the pointer a bit backwards to find the start of the structure. No you're guaranteed to point somewhere in memory. QUEUE_DATA is actually equivalent to container_of.