struct proc_dir_entry *next, *parent, *subdir; void *data; read_proc_t *read_proc; write_proc_t *write_proc; atomic_t count; int pde_users; spinlock_t pde_unload_lock; struct completion *pde_unload_completion; struct list_head pde_openers; };在注册entry的时候,如果提供read_proc,...
If defined, this proc is called when the node is read. Should be NULL for directory nodes.NOTE:If you need to return large amounts of data, the proc must return the data in chunks and reposition itself on the next call, using theoffsetvariable. Seeip_masq_procinfofor example code with...