On Wed Feb 5 20:51:39 2025 +0000, Elizabeth Figura wrote:
Sorry, I don't understand? In e.g. create_inproc_event() we retrieve the fd from it and use that to call NTSYNC_IOC_CREATE_EVENT. If you're asking why it's a whole server object already, that's because we'll need the client to be able to retrieve the same fd later. That could do with at least an explanation in the patch subject, so I'll add one.
In create_inproc_event, you call `get_linux_device`, which creates a new linux_device object, setting the static, then the object is released and as it's the only reference it's also destroyed and the static is cleared. The static is therefore not useful at this point.