1 /* 2 * Copyright (C) 2015-2021 Alibaba Group Holding Limited 3 */ 4 5 #ifndef _DEVICEVFS_RPC_H_ 6 #define _DEVICEVFS_RPC_H_ 7 8 /** 9 * 10 * open RPC message handler, called when OPEN rpc message arrived in main rpc service's handler 11 * 12 * @param parg - pointer to u_fops_arg_u 13 * @param crpc_handle - rpc client's handle, 14 * response should be send to rpc client no matter this operation succeed or not 15 * 16 * @return 0 for success; negative for failure 17 */ 18 int u_device_rpc_open(u_fops_arg_u *parg, int crpc_handle); 19 20 /** 21 * close RPC message handler, called when CLOSE rpc message arrived in main rpc service's handler 22 * 23 * @param parg - pointer to u_fops_arg_u 24 * @param crpc_handle - rpc client's handle, 25 * response should be send to rpc client no matter this operation succeed or not 26 * 27 * @return 0 for success; negative for failure 28 */ 29 int u_device_rpc_close(u_fops_arg_u *parg, int crpc_handle); 30 31 #endif //_DEVICEVFS_RPC_H_ 32