<div dir="ltr">Thanks! To anyone else that might know the answer thanks also (in advance) :D</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 5:56 PM, Mandeep Sandhu <span dir="ltr"><<a href="mailto:mandeepsandhu.chd@gmail.com" target="_blank">mandeepsandhu.chd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>> I'm on linux kernel version 3.14, and I followed the guide here:<br>
>><br>
>> <a href="https://www.kernel.org/doc/htmldocs/uio-howto/userspace_driver.html" rel="noreferrer" target="_blank">https://www.kernel.org/doc/htmldocs/uio-howto/userspace_driver.html</a><br>
>><br>
>> And it describes the location on where the device file that should be<br>
>> opened by userland code as either one of two locations:<br>
>><br>
>> /dev/uioX, with X being a number<br>
>><br>
>> or /sys/class/uio/uioX<br>
>><br>
>> But the each of following returns nothing:<br>
>><br>
>> ls /dev/uio*<br>
>> ls /sys/class/uio/<br>
>><br>
>> After I compile the uio example that is provided in the linux source at<br>
>> source/drivers/uio/uio.c and uio_dmem_genirq.c, and insmod them, I do<br>
>> modprobe uio and modprobe uio_dmem_genirq and each of those return nothing.<br>
>> However, I do see that /sys/modules/uio and /sys/modules/uio_dmem_genirq<br>
<br>
</span>Have a look at this sample driver I wrote sometime back to trigger a UIO issue:<br>
<br>
<a href="https://github.com/mandeepsandhu/uio-hotplug-test" rel="noreferrer" target="_blank">https://github.com/mandeepsandhu/uio-hotplug-test</a><br>
<br>
I have not had the time to look at where it differs from your<br>
implemntation, but I'll leave that to you to figure out :)<br>
<br>
This create the /devuioX device file which the userspace code is opening.<br>
<br>
HTH,<br>
-mandeep<br>
<span class=""><br>
<br>
>><br>
>><br>
>> What am I doing wrong? Or where are the respective device files that I'm<br>
>> supposed to use in my userland driver process?<br>
>><br>
>> int fd = open("where is it!!?");<br>
>> mmap(...., fd,..);<br>
><br>
><br>
><br>
</span>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
</blockquote></div><br></div>