コード例 #1
0
static ssize_t write_add(struct file *file, char *buf, size_t size)
{
	struct nfsctl_client *data;
	if (size < sizeof(*data))
		return -EINVAL;
	data = (struct nfsctl_client *)buf;
	return exp_addclient(data);
}
コード例 #2
0
ファイル: nfsctl.c プロジェクト: muromec/linux-ezxdev
static inline int
nfsctl_addclient(struct nfsctl_client *data)
{
	return exp_addclient(data);
}