On 7 March 2015 at 00:58, Emil Velikov <emil.l.velikov@xxxxxxxxx> wrote: > Currently most places assume reliable master <> render node mapping. > Although this may work in some cases, it is not correct. > > Add a couple of helpers that hide the details and provide the name of > the master/render device name, given an render/master FD. > > v2: > - Rename Device and Primary to Master (aka the /dev/dri/cardX device). > - Check for the file via readdir_r() rather than stat(). > - Wrap the check into a single function. > - Return NULL for non-linux platforms. > > v3: > - Don't segfault if name is NULL. > - Update function names, as suggested by Frank Binns. And seemingly I've forgot to update the patch summary to reflect the change. I'll do so before pushing -Emil _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel