I'm trying to register a char device, and I'm not sure what is the difference between the file_opreation, that is used when registering the device with register_chrdev, and the device_attribute, that is used when creating the device with device_create_file.
Both of those structs hold functions, that should be called when read&write operations are preformed on the device. So what is the difference between them? can I implement the functions only for one of them?
Thanks.