binfmts.h File Reference

#include <linux/ptrace.h>

Go to the source code of this file.

Data Structures

struct  linux_binprm
struct  linux_binfmt

Defines

#define MAX_ARG_PAGES   32

Functions

int read_exec (struct inode *inode, unsigned long offset, char *addr, unsigned long count)
int open_inode (struct inode *inode, int mode)
void flush_old_exec (struct linux_binprm *bprm)
unsigned long change_ldt (unsigned long text_size, unsigned long *page)
unsigned long * create_tables (char *p, int argc, int envc, int ibcs)
unsigned long copy_strings (int argc, char **argv, unsigned long *page, unsigned long p, int from_kmem)

Variables

linux_binfmt formats []


Define Documentation

#define MAX_ARG_PAGES   32

MAX_ARG_PAGES defines the number of pages allocated for arguments and envelope for the new program. 32 should suffice, this gives a maximum env+arg of 128kB !

Definition at line 15 of file binfmts.h.


Function Documentation

unsigned long change_ldt ( unsigned long  text_size,
unsigned long *  page 
)

unsigned long copy_strings ( int  argc,
char **  argv,
unsigned long *  page,
unsigned long  p,
int  from_kmem 
)

unsigned long* create_tables ( char *  p,
int  argc,
int  envc,
int  ibcs 
)

void flush_old_exec ( struct linux_binprm bprm  ) 

int open_inode ( struct inode inode,
int  mode 
)

int read_exec ( struct inode inode,
unsigned long  offset,
char *  addr,
unsigned long  count 
)


Variable Documentation

struct linux_binfmt formats[]


Generated on Mon May 1 21:47:00 2006 for KernelAPI by  doxygen 1.4.6-5