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?
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.
Ubuntu Forums Code of Conduct