File: vu_pushpop.h

package info (click to toggle)
vuos 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: ansic: 22,155; python: 284; makefile: 28; sh: 4
file content (18 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef VU_PUSHPOP_H
#define VU_PUSHPOP_H
#include <umvu_peekpoke.h>

/* push and pop data on the user process stack. */

/* The area above the stack pointer of the process is used to store data
	 (pathnames, memory structures) nededed by the kernel
	 to run the system call.  This method does not generate conflicts because the
	 kernel uses a different stack area to process the system call and when the
	 syscall returns, the values stored above the SP aren't used anymore. */


syscall_arg_t vu_push(struct syscall_descriptor_t *sd, void *buf, size_t datalen);

void vu_pop(struct syscall_descriptor_t *sd, void *buf, size_t datalen);

#endif