dhwanish-3/Character_Device_Driver ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Linux character device driver project that also works as a set of learning examples for operating systems class. I want separate folders for a hello world kernel module, getting the major and minor numbers, basic file operations, creating and using a device file, and passing arguments into a module. Make it easy to build and load the examples, and include simple notes in the code so I can understand what each part is doing. If you need to, look up the current kernel docs online so the code matches modern Linux practice. Keep it simple and beginner friendly, but make sure the examples actually show how a character device driver is put together from start to finish.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab