<div dir="ltr"><div>Forgot to hit "reply all"</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 9:52 AM Sayeed hyder <<a href="mailto:csayeedh@gmail.com">csayeedh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Greg,</div><div><br></div><div>Sure, this is what I get if I use the syspath from udev_device_get_syspath. As you can see, it is showing a symlink to a device, and there is no driver. If it helps, it is a DAX mounted persistent memory device.</div><div><br></div><div><img src="cid:ii_juvgaxyu0" alt="image.png" style="margin-right: 0px;"><br></div><div><br></div><div>Thanks,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 9:38 AM Greg KH <<a href="mailto:gregkh@linuxfoundation.org" target="_blank">gregkh@linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Apr 24, 2019 at 08:38:02AM -0700, Sayeed hyder wrote:<br>
> Hi,<br>
> <br>
> I was looking at the udev_device_get_driver implementation. It first gets<br>
> the sys path and then appends "driver", and calls readlink to get the<br>
> driver information. Does it work for all cases? While working on a project,<br>
> I found that following the sys path, there is no "driver", but it should be<br>
> "device/driver" i.e. if I append "device/driver" instead of "driver" only,<br>
> I can use readlink to get the driver information.<br>
<br>
What in-kernel driver causes an odd sysfs tree like this?  Can you show<br>
me the full path of it?<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</blockquote></div>
</blockquote></div></div>