7031438f58
- Intorduce and use a message type for VFS_GETDENTS, VFS_READ, VFS_WRITE. - Some cleanup to related functions where vir_bytes are replaced (and casted to/from, in parameter definition and local variables as well. This allow to see more clearly which function receives unsafe (pointer) values, or at least values which are not supposed to be valid in the address space of VFS. The current patch does so only for the minimal amount of functions which are concerned with the introduction of the new message type. Change-Id: I0cdca97409c4016d02fae067b48bf55d37572c5c
18 lines
389 B
C
18 lines
389 B
C
#ifndef __VFS_SCRATCHPAD_H__
|
|
#define __VFS_SCRATCHPAD_H__
|
|
|
|
/* This is the per-process information. A slot is reserved for each potential
|
|
* process. Thus NR_PROCS must be the same as in the kernel.
|
|
*/
|
|
EXTERN struct scratchpad {
|
|
union sp_data {
|
|
int fd_nr;
|
|
struct filp *filp;
|
|
} file;
|
|
struct io_cmd {
|
|
vir_bytes io_buffer;
|
|
size_t io_nbytes;
|
|
} io;
|
|
} scratchpad[NR_PROCS];
|
|
|
|
#endif
|