Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


(no commit message)
[palacios.git] / palacios / include / geekos / argblock.h
1 /*
2  * Create and extract the command line argument block for a process
3  * Copyright (c) 2003 David H. Hovemeyer <daveho@cs.umd.edu>
4  * $Revision: 1.1.1.1 $
5  * 
6  * This is free software.  You are permitted to use,
7  * redistribute, and modify it as specified in the file "COPYING".
8  */
9
10 #ifndef GEEKOS_ARGBLOCK_H
11 #define GEEKOS_ARGBLOCK_H
12
13 /**
14  * Header struct for accessing argument block from user mode.
15  * Just cast the address of the argument block passed by
16  * the kernel to a pointer to this struct.
17  */
18 struct Argument_Block {
19     int argc;
20     char **argv;
21 };
22
23 #ifdef GEEKOS
24
25 /*
26  * Functions used by the kernel to create the argument block.
27  */
28 void Get_Argument_Block_Size(const char *command, unsigned *numArgs, ulong_t *argBlockSize);
29 void Format_Argument_Block(char *argBlock, unsigned numArgs, ulong_t userAddress,
30     const char *command);
31
32 #endif
33
34 #endif  /* GEEKOS_ARGBLOCK_H */