sys/src/sys_affinity.c File Reference

system service affinities More...

#include <linux/config.h>
#include <linux/linkage.h>
#include <far_pointers.h>
#include <linux/sched.h>
#include <ssdef.h>
#include <cpbdef.h>
#include <ipldef.h>
#include <statedef.h>
#include <internals.h>
#include <prvdef.h>
#include <sch_routines.h>
#include <exe_routines.h>
#include <capdef.h>
#include <starlet.h>

Go to the source code of this file.

Functions

asmlinkage int exe_process_affinity (unsigned int *pidadr, void *prcnam, struct _generic_64 *select_mask, struct _generic_64 *modify_mask, struct _generic_64 *prev_mask, struct _generic_64 *flags,...)
 system service for explicit affinity mask - see 7.0 2.5.2
asmlinkage int exe_set_implicit_affinity (unsigned int *pidadr, void *prcnam, struct _generic_64 *state, int cpu_id, struct _generic_64 *prev_mask)
 system service for implicit affinity mask - see 7.0 2.5.4
asmlinkage int exe_process_affinity_wrap (struct struct_args *s)


Detailed Description

system service affinities

Author:
Roar Thronęs

Definition in file sys_affinity.c.


Function Documentation

asmlinkage int exe_process_affinity ( unsigned int *  pidadr,
void *  prcnam,
struct _generic_64 select_mask,
struct _generic_64 modify_mask,
struct _generic_64 prev_mask,
struct _generic_64 flags,
  ... 
)

system service for explicit affinity mask - see 7.0 2.5.2

lots of flags and checks unimplemented

call set_affinity

Definition at line 32 of file sys_affinity.c.

References _pcb, ctl_gl_pcb, exe_nampid(), IPL__ASTDEL, sch_clear_affinity(), sch_set_affinity(), SPIN_SCHED, SS__NOPRIV, and SS__NORMAL.

Referenced by exe_process_affinity_wrap().

asmlinkage int exe_process_affinity_wrap ( struct struct_args s  ) 

asmlinkage int exe_set_implicit_affinity ( unsigned int *  pidadr,
void *  prcnam,
struct _generic_64 state,
int  cpu_id,
struct _generic_64 prev_mask 
)

system service for implicit affinity mask - see 7.0 2.5.4

lots of flags and checks unimplemented

maybe do acquire affinity

maybe do release affinity

Definition at line 69 of file sys_affinity.c.

References _pcb, CAP_M_IMPLICIT_AFFINITY_CLEAR, CAP_M_IMPLICIT_AFFINITY_SET, CAP_M_IMPLICIT_DEFAULT_ONLY, ctl_gl_pcb, exe_nampid(), IPL__ASTDEL, PRV_M_ALTPRI, sch_acquire_affinity(), sch_gl_default_process_cap, sch_release_affinity(), SPIN_SCHED, SS__NOPRIV, and SS__NORMAL.


Generated on Fri Oct 9 10:26:02 2009 for FreeVMS by  doxygen 1.5.5