rpc_mkpipe_dentry (9) - Linux Man Pages
rpc_mkpipe_dentry: make an rpc_pipefs file for kernel<->userspace communication
rpc_mkpipe_dentry - make an rpc_pipefs file for kernel<->userspace communication
struct dentry * rpc_mkpipe_dentry(struct dentry
*parent, const char *name, void *private, struct rpc_pipe *pipe);
- dentry of directory to create new "pipe" in
- name of pipe
- private data to associate with the pipe, for the caller's use
- rpc_pipe containing input parameters
Data is made available for userspace to read by calls to rpc_queue_upcall. The actual reads will result in calls to ops->upcall, which will be called with the file pointer, message, and userspace buffer to copy to.
Writes can come at any time, and do not necessarily have to be responses to upcalls. They will result in calls to msg->downcall.