Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

dma

Linux kernel device driver to DMA from a device into user-space memory

September 13, 2023 by Tarik

I’m actually working on exactly the same thing right now and I’m going the ioctl() route. The general idea is for user space to allocate the buffer which will be used for the DMA transfer and an ioctl() will be used to pass the size and address of this buffer to the device driver. The … Read more

Categories linux Tags dma, linux, linux-device-driver, linux-kernel Leave a comment

Why mmap() is faster than sequential IO? [duplicate]

May 26, 2023 by Tarik

I heard (read it on the internet somewhere) that mmap() is faster than sequential IO. Is this correct? If yes then why it is faster? It can be – there are pros and cons, listed below. When you really have reason to care, always benchmark both. Quite apart from the actual IO efficiency, there are … Read more

Categories c Tags c++, dma, linux, mmap Leave a comment

How to get page size programmatically within Linux kernel module code

April 7, 2023 by Tarik

Try using the getconf utility, which will allow you to retrieve the page size, in bytes, easily. getconf PAGESIZE Example output, in bytes: 4096

Categories memory-management Tags dma, linux-device-driver, memory-management Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa