问大家一个C的问题:
struct file_operation asdf_fops={
open:asdf_open,
release:asdf_release,
write:asdf_write,
llseek:asdf_llseek,
}
上面明显是结构体的初始化,但是不懂“:”是什么语法???、
有知道的朋友能解释下吗?谢谢了!!!!!!
说明asdf_open,asdf_release,asdf_write,asde_llseek是函数名。前面的open,release,write,llseek,是函数指针!!!!!! |