GNU/Linux & PCI (Express): Part 10 - Accessing PCI(e) IO ports from userspace

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • #GNU #Linux #PCIe #PCI #Programming #Tutorial #foss
    In this series I already covered how to access the config and memory space of a PCI or PCI Express device from userspace. So, there is one address space missing. In this video I will show you how to access the IO ports of a PCI or PCI Express devices from userspace in a simple C application. Enjoy!
    You want to support my work? You can buy me a coffee here: www.buymeacoff...
    If you want to contact me, you can find my E-Mail on www.gnu-linux.rocks

КОМЕНТАРІ • 10

  • @paulov9626
    @paulov9626 3 місяці тому

    WunderBAR 😉 Really nice series of tuts, no nonsense just plain, interesting info. Subscribed.

  • @Alperic27
    @Alperic27 2 місяці тому

    ‘gnu slash linux’ …. 🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️ jezzzz that is profoundly stupid…

  • @maximerkhov4164
    @maximerkhov4164 3 місяці тому

    Very nice explanation as usual, thank you for another great video! Aren't there any plans for creating userspace drivers with the use of VFIO? It would be incredibly interesting!

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  3 місяці тому +1

      Thanks.
      No concret plans but I am currently preparing a Video on uio for the near Future.

  • @ShreyaMandal-f7b
    @ShreyaMandal-f7b Місяць тому

    Thanks Johannes for the wonderful explanation. Here why are you not using mmap() ? Is mmap() not possible here or you are trying out a different method ? Are these address space different from memory address space ?

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  Місяць тому

      @@ShreyaMandal-f7b you are welcome ;) you can only memory map memory but Not io Ports. Thats why I am using the io functions here.
      But modern devices don't use Classic io Ports any longer. Instead they are using memory mapped io (mmio) which can bei accessed with mmap.

  • @Skren-uf8dq
    @Skren-uf8dq 3 місяці тому

    Wow, this is really cool! Thank you so much for this!!

  • @rodrigoolmos9202
    @rodrigoolmos9202 4 місяці тому

    Great job dude 😊

  • @lihtbarraovermelho7928
    @lihtbarraovermelho7928 3 місяці тому

    very good

  • @Ninja_Sh11
    @Ninja_Sh11 4 місяці тому

    Nice explanation.. Thanks Team