im not really sure what it all means...
i know what a 'struct' is, its like a class but with different default privileges, but what do 'file_operations' and 'memory_fops' represent? and why is there an '=' sign?
from there, what does the whole
read: memory read,
write:memory_write
etc. thing represent? i have never seen this type of syntax before...
thanks much! here is the full article, i would highly recommend it if you are interested in device drivers:
hmm... c struct initializer syntax? do you know of a tutorial specific to this kind? i thought the initializer syntax was just defining variables... never seen something like
word: another_word,
word2: another_word2,
.read is a pointer to a function which has the same signature as memory_read().
[They are all function pointers. This is a common technique you'll find throughout the kernel code.]