relay.c (8d1413b28033c49c7f1a4d320e815d7a5531acee) relay.c (15ad7cdcfd76450d4beebc789ec646664238184d)
1/*
2 * Public API and common code for kernel->userspace relay file support.
3 *
4 * See Documentation/filesystems/relayfs.txt for an overview of relayfs.
5 *
6 * Copyright (C) 2002-2005 - Tom Zanussi (zanussi@us.ibm.com), IBM Corp
7 * Copyright (C) 1999-2005 - Karim Yaghmour (karim@opersys.com)
8 *

--- 999 unchanged lines hidden (view full) ---

1008 desc.written = 0;
1009 desc.count = count;
1010 desc.arg.data = target;
1011 desc.error = 0;
1012 return relay_file_read_subbufs(filp, ppos, subbuf_send_actor,
1013 actor, &desc);
1014}
1015
1/*
2 * Public API and common code for kernel->userspace relay file support.
3 *
4 * See Documentation/filesystems/relayfs.txt for an overview of relayfs.
5 *
6 * Copyright (C) 2002-2005 - Tom Zanussi (zanussi@us.ibm.com), IBM Corp
7 * Copyright (C) 1999-2005 - Karim Yaghmour (karim@opersys.com)
8 *

--- 999 unchanged lines hidden (view full) ---

1008 desc.written = 0;
1009 desc.count = count;
1010 desc.arg.data = target;
1011 desc.error = 0;
1012 return relay_file_read_subbufs(filp, ppos, subbuf_send_actor,
1013 actor, &desc);
1014}
1015
1016struct file_operations relay_file_operations = {
1016const struct file_operations relay_file_operations = {
1017 .open = relay_file_open,
1018 .poll = relay_file_poll,
1019 .mmap = relay_file_mmap,
1020 .read = relay_file_read,
1021 .llseek = no_llseek,
1022 .release = relay_file_release,
1023 .sendfile = relay_file_sendfile,
1024};
1025EXPORT_SYMBOL_GPL(relay_file_operations);
1017 .open = relay_file_open,
1018 .poll = relay_file_poll,
1019 .mmap = relay_file_mmap,
1020 .read = relay_file_read,
1021 .llseek = no_llseek,
1022 .release = relay_file_release,
1023 .sendfile = relay_file_sendfile,
1024};
1025EXPORT_SYMBOL_GPL(relay_file_operations);