Results 1 to 2 of 2

Thread: In Ubuntu 22+, How to list directory in kernel module by C language?

  1. #1
    Join Date
    Oct 2024
    Beans
    3

    In Ubuntu 22+, How to list directory in kernel module by C language?

    In Ubuntu 20, I use the demo code in attachment "hello.c.jpg" to show the files in a directory, but when I upgraded to Ubuntu 22.04(Linux kernel version 6.8.0-49), it doesn't work, I found the structure definition of dentry in dcache.h changed, and the demo compilation failed, so how can I list a directory in Ubuntu 22+ in the kernel?
    Attached Images Attached Images

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: In Ubuntu 22+, How to list directory in kernel module by C language?

    Hello!

    Please read the banner at the top of this page. We are no longer accepting new requests for assistance. The appropriate place to ask your question is now Ubuntu Discourse, which is linked in the banner.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •