.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * include/net/9p/client.h |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com> |
---|
7 | 8 | * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 |
---|
11 | | - * as published by the Free Software Foundation. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to: |
---|
20 | | - * Free Software Foundation |
---|
21 | | - * 51 Franklin Street, Fifth Floor |
---|
22 | | - * Boston, MA 02111-1301 USA |
---|
23 | | - * |
---|
24 | 9 | */ |
---|
25 | 10 | |
---|
26 | 11 | #ifndef NET_9P_CLIENT_H |
---|
.. | .. |
---|
88 | 73 | * @wq: wait_queue for the client to block on for this request |
---|
89 | 74 | * @tc: the request fcall structure |
---|
90 | 75 | * @rc: the response fcall structure |
---|
91 | | - * @aux: transport specific data (provided for trans_fd migration) |
---|
92 | 76 | * @req_list: link for higher level objects to chain requests |
---|
93 | 77 | */ |
---|
94 | 78 | struct p9_req_t { |
---|
.. | .. |
---|
98 | 82 | wait_queue_head_t wq; |
---|
99 | 83 | struct p9_fcall tc; |
---|
100 | 84 | struct p9_fcall rc; |
---|
101 | | - void *aux; |
---|
102 | 85 | struct list_head req_list; |
---|
103 | 86 | }; |
---|
104 | 87 | |
---|
.. | .. |
---|
215 | 198 | int p9_client_remove(struct p9_fid *fid); |
---|
216 | 199 | int p9_client_unlinkat(struct p9_fid *dfid, const char *name, int flags); |
---|
217 | 200 | int p9_client_read(struct p9_fid *fid, u64 offset, struct iov_iter *to, int *err); |
---|
| 201 | +int p9_client_read_once(struct p9_fid *fid, u64 offset, struct iov_iter *to, |
---|
| 202 | + int *err); |
---|
218 | 203 | int p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err); |
---|
219 | 204 | int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset); |
---|
220 | 205 | int p9dirent_read(struct p9_client *clnt, char *buf, int len, |
---|