sysinterf.h File Reference

#include <sysinterf/types.h>
#include <machdep/machdep.h>
#include <conven/queue.h>
#include <sysinterf/assert.h>
#include <sysinterf/errno.h>
#include <sysinterf/signal.h>
#include <sysinterf/wait.h>
#include <sysinterf/malloc.h>
#include <sysinterf/time.h>
#include <sysinterf/fd.h>
#include <sysinterf/prop.h>
#include <sysinterf/notify.h>
#include <sysinterf/copy.h>
#include <sysinterf/stcb.h>
#include <sysinterf/ltcb.h>
#include <sysinterf/sec.h>
#include <sysinterf/npx.h>

Go to the source code of this file.

Defines

#define __SYSINTERF_SYSINTERF_H__   1

Functions

int _exit (int code)
int setpgid (pid_t pid, pid_t pgid)
uid_t getuid ()
uid_t geteuid ()
gid_t getgid ()
gid_t getegid ()
int getgroups (int gidsetlen, gid_t *gidset)
int setgroups (int ngroups, const gid_t *gidset)
int setuid (uid_t uid)
int seteuid (uid_t euid)
int setgid (gid_t gid)
int setegid (gid_t egid)
int sigreturn (void *sc)
int sigsuspend (sigset_t *mask)
int sigprocmask (int how, const sigset_t *set, sigset_t *oset)
int ptrace (int request, pid_t pid, caddr_t addr, int data)
int vm86 (struct vm86 *p)
int tcbsizepg (int signalable, int iomap_present)
int nicepid (pid_t pid, int incr)
int sigaction2 (int sig, const struct sigaction2 *act, struct sigaction2 *oact)
int _sgdt (int start_idx, union descriptor *descs, int *nb_sels)
int _sidt (int cpu, int start_idx, union descriptor *descs, int *nb_sels)
int _lidt (int cpu, int start_idx, union descriptor *descs, int nb_sels)
int _rcr3 (u_int sel)
int idtrsv (int cpu, int from, int nb_sels)
int idtrele (int cpu, int idxsel, int nb_sels)
int runq (int cpu, struct s_runqop *runqop_ret)
int reparent (u_int sel, u_int link)
int clearbsy (u_int sel)
int setbsy (u_int sel)
int setrunq (u_int sel)
int remrunq (u_int sel)
u_int getsel (pid_t pid)
int _ioacquire (pid_t pid, int ioport)
int _iorele (pid_t pid, int ioport)
int reboot (void)
int spid (u_int sel, pid_t *pid_ret)
int sppid (u_int sel, pid_t *pid_ret)
int sppid2 (pid_t, pid_t *pid_ret)
int sasid (u_int sel, asid_t *asid_ret)
int setasuid (asid_t asid, uid_t uid)
int spgid (u_int sel, pid_t *pgid_ret)
int spgid2 (pid_t, pid_t *pgid_ret)
asid_t getasid (void)
int sinfo (struct s_core_info *info)
int dump (void)
int setrunq2 (pid_t pid)
int remrunq2 (pid_t pid)
pid_t tcbreg (kaddr_t ka, int nb_pgs, u_int sel, int cpu)
int tcbunreg (pid_t pid)
int kill2 (pid_t pid, int signum, int sigcode, void *addr)
int scred (pid_t pid, struct s_ucred *ucred)
asid_t asreg (kaddr_t ka, paddr_t pgdir, u_int32_t opts)
int sas (asid_t asid, struct s_as_export *aspace_returned)
int lasep (asid_t asid, int exec_pc, int exec_sp, int exec_fp)
paddr_t prsv (asid_t asid, paddr_t paddr, int nb_pgs, u_int32_t modeopts)
vaddr_t krsv (asid_t asid, int nb_pgs, int type)
vaddr_t vrsv (asid_t asid, vaddr_t addr, int nb_pgs, u_int32_t modeopts)
int _prele (asid_t asid, paddr_t paddr, int nb_pgs, u_int32_t opts)
int prele (asid_t asid, paddr_t paddr, int nb_pgs, int dont_clean)
int _krele (asid_t asid, vaddr_t vaddr, int nb_pgs, u_int32_t opts)
int krele (asid_t asid, vaddr_t vaddr, int nb_pgs)
int _vrele (asid_t asid, vaddr_t vaddr, int nb_pgs, u_int32_t opts)
int vrele (asid_t asid, vaddr_t vaddr, int nb_pgs)
int wire (asid_t asid, vaddr_t vaddr, int nb_pgs, paddr_t paddr, u_int32_t flags)
int _vmap (asid_t asid, vaddr_t vaddr, int nb_pgs, paddr_t paddr, u_int32_t flags)
int vmap (asid_t asid, vaddr_t vaddr, int nb_pgs, paddr_t paddr, u_int32_t flags)
int pdef (paddr_t paddr, int nb_pgs, asid_t *asid_ret, u_int32_t *pmode_ret, u_int32_t *pmodeopt_ret, int *refcnt)
int kdef (kaddr_t kaddr, int nb_pgs, asid_t *asid_ret)
int vdef (asid_t asid, vaddr_t vaddr, int nb_pgs, paddr_t *paddr_ret, u_int32_t *flags_ret, u_int32_t *paddr_mode_ret, u_int32_t *paddr_modeopt_ret)
int _vunmap (asid_t asid, vaddr_t vaddr, int nb_pgs, u_int32_t opts)
int vunmap (asid_t asid, vaddr_t vaddr, int nb_pgs)
int paggregate (asid_t asid, paddr_t paddr, int nb_pgs)
int pshare (asid_t asid, paddr_t paddr, int nb_pgs, int type)
int pgive (asid_t asid, asid_t newasid, paddr_t paddr, int nb_pgs)
int aggdef (asid_t asid, vaddr_t va, int nb_pgs, int *agg_nb_pgs_ret, vaddr_t *agg_va_ret, paddr_t *agg_pa_ret)
int aspgdir (asid_t asid)
int memdef (asid_t asid, u_int32_t opts, struct s_memdef *memdefp, int *nb_memdefsp, int *againp)
int procdef (int start, struct s_procdef *procdefp, int *nb_procdefsp, int *againp)
int asop (pid_t pid, asid_t refasid, u_int32_t mode)
int asunreg (asid_t asid)
int dwrite (char *str, int len, int bold)
void uassert (char *file, int line, char *error)
void kassert (char *file, int line, char *error)
int memdump (asid_t asid, asid_t subasid)
int check (void)


Define Documentation

#define __SYSINTERF_SYSINTERF_H__   1
 


Function Documentation

int _exit (  int  code  ) 
 

int _ioacquire (  pid_t  pid,
int  ioport
) 
 

there shoud be a more generalistic call to acquire multiple ioports in one shot

int _iorele (  pid_t  pid,
int  ioport
) 
 

int _krele (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
u_int32_t  opts
) 
 

int _lidt (  int  cpu,
int  start_idx,
union descriptor *  descs,
int  nb_sels
) 
 

int _prele (  asid_t  asid,
paddr_t  paddr,
int  nb_pgs,
u_int32_t  opts
) 
 

int _rcr3 (  u_int  sel  ) 
 

int _sgdt (  int  start_idx,
union descriptor *  descs,
int *  nb_sels
) 
 

int _sidt (  int  cpu,
int  start_idx,
union descriptor *  descs,
int *  nb_sels
) 
 

int _vmap (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
paddr_t  paddr,
u_int32_t  flags
) 
 

do not wire(2)

int _vrele (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
u_int32_t  opts
) 
 

int _vunmap (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
u_int32_t  opts
) 
 

int aggdef (  asid_t  asid,
vaddr_t  va,
int  nb_pgs,
int *  agg_nb_pgs_ret,
vaddr_t *  agg_va_ret,
paddr_t *  agg_pa_ret
) 
 

int asop (  pid_t  pid,
asid_t  refasid,
u_int32_t  mode
) 
 

int aspgdir (  asid_t  asid  ) 
 

asid_t asreg (  kaddr_t  ka,
paddr_t  pgdir,
u_int32_t  opts
) 
 

int asunreg (  asid_t  asid  ) 
 

int check (  void   ) 
 

int clearbsy (  u_int  sel  ) 
 

int dump (  void   ) 
 

int dwrite (  char *  str,
int  len,
int  bold
) 
 

asid_t getasid (  void   ) 
 

get address space id

gid_t getegid (   ) 
 

uid_t geteuid (   ) 
 

gid_t getgid (   ) 
 

int getgroups (  int  gidsetlen,
gid_t *  gidset
) 
 

u_int getsel (  pid_t  pid  ) 
 

uid_t getuid (   ) 
 

int idtrele (  int  cpu,
int  idxsel,
int  nb_sels
) 
 

int idtrsv (  int  cpu,
int  from,
int  nb_sels
) 
 

void kassert (  char *  file,
int  line,
char *  error
) 
 

int kdef (  kaddr_t  kaddr,
int  nb_pgs,
asid_t *  asid_ret
) 
 

int kill2 (  pid_t  pid,
int  signum,
int  sigcode,
void *  addr
) 
 

int krele (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs
) 
 

vaddr_t krsv (  asid_t  asid,
int  nb_pgs,
int  type
) 
 

int lasep (  asid_t  asid,
int  exec_pc,
int  exec_sp,
int  exec_fp
) 
 

load aspace entry points

int memdef (  asid_t  asid,
u_int32_t  opts,
struct s_memdef *  memdefp,
int *  nb_memdefsp,
int *  againp
) 
 

int memdump (  asid_t  asid,
asid_t  subasid
) 
 

int nicepid (  pid_t  pid,
int  incr
) 
 

int paggregate (  asid_t  asid,
paddr_t  paddr,
int  nb_pgs
) 
 

int pdef (  paddr_t  paddr,
int  nb_pgs,
asid_t *  asid_ret,
u_int32_t *  pmode_ret,
u_int32_t *  pmodeopt_ret,
int *  refcnt
) 
 

int pgive (  asid_t  asid,
asid_t  newasid,
paddr_t  paddr,
int  nb_pgs
) 
 

int prele (  asid_t  asid,
paddr_t  paddr,
int  nb_pgs,
int  dont_clean
) 
 

int procdef (  int  start,
struct s_procdef *  procdefp,
int *  nb_procdefsp,
int *  againp
) 
 

paddr_t prsv (  asid_t  asid,
paddr_t  paddr,
int  nb_pgs,
u_int32_t  modeopts
) 
 

allocates a physical page

Parameters:
asid  address space id
paddr  fixed addr or -1
nb_pgs  nb of pgs to allocate
modeopts  mode options

int pshare (  asid_t  asid,
paddr_t  paddr,
int  nb_pgs,
int  type
) 
 

int ptrace (  int  request,
pid_t  pid,
caddr_t  addr,
int  data
) 
 

int reboot (  void   ) 
 

int remrunq (  u_int  sel  ) 
 

int remrunq2 (  pid_t  pid  ) 
 

int reparent (  u_int  sel,
u_int  link
) 
 

int runq (  int  cpu,
struct s_runqop *  runqop_ret
) 
 

next task to run

int sas (  asid_t  asid,
struct s_as_export *  aspace_returned
) 
 

int sasid (  u_int  sel,
asid_t *  asid_ret
) 
 

store address space id

int scred (  pid_t  pid,
struct s_ucred *  ucred
) 
 

store credentials

int setasuid (  asid_t  asid,
uid_t  uid
) 
 

set address space uid

int setbsy (  u_int  sel  ) 
 

int setegid (  gid_t  egid  ) 
 

int seteuid (  uid_t  euid  ) 
 

int setgid (  gid_t  gid  ) 
 

int setgroups (  int  ngroups,
const gid_t *  gidset
) 
 

int setpgid (  pid_t  pid,
pid_t  pgid
) 
 

int setrunq (  u_int  sel  ) 
 

int setrunq2 (  pid_t  pid  ) 
 

int setuid (  uid_t  uid  ) 
 

int sigaction2 (  int  sig,
const struct sigaction2 *  act,
struct sigaction2 *  oact
) 
 

warning, this function doesn't allocate stacks

int sigprocmask (  int  how,
const sigset_t *  set,
sigset_t *  oset
) 
 

int sigreturn (  void *  sc  ) 
 

int sigsuspend (  sigset_t *  mask  ) 
 

int sinfo (  struct s_core_info *  info  ) 
 

int spgid (  u_int  sel,
pid_t *  pgid_ret
) 
 

int spgid2 (  pid_t  ,
pid_t *  pgid_ret
) 
 

int spid (  u_int  sel,
pid_t *  pid_ret
) 
 

int sppid (  u_int  sel,
pid_t *  pid_ret
) 
 

int sppid2 (  pid_t  ,
pid_t *  pid_ret
) 
 

pid_t tcbreg (  kaddr_t  ka,
int  nb_pgs,
u_int  sel,
int  cpu
) 
 

int tcbsizepg (  int  signalable,
int  iomap_present
) 
 

int tcbunreg (  pid_t  pid  ) 
 

void uassert (  char *  file,
int  line,
char *  error
) 
 

int vdef (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
paddr_t *  paddr_ret,
u_int32_t *  flags_ret,
u_int32_t *  paddr_mode_ret,
u_int32_t *  paddr_modeopt_ret
) 
 

int vm86 (  struct vm86 *  p  ) 
 

int vmap (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
paddr_t  paddr,
u_int32_t  flags
) 
 

_vmap(2) and wire(2)

int vrele (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs
) 
 

vaddr_t vrsv (  asid_t  asid,
vaddr_t  addr,
int  nb_pgs,
u_int32_t  modeopts
) 
 

int vunmap (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs
) 
 

int wire (  asid_t  asid,
vaddr_t  vaddr,
int  nb_pgs,
paddr_t  paddr,
u_int32_t  flags
) 
 


Generated on Wed May 24 23:05:59 2006 for LSE/OS by  doxygen 1.4.6