sys/src/sysascefc.c File Reference

associate event flags More...

#include <linux/unistd.h>
#include <linux/linkage.h>
#include <linux/sched.h>
#include <ssdef.h>
#include <starlet.h>
#include <cebdef.h>
#include <pridef.h>
#include <statedef.h>
#include <evtdef.h>
#include <ipldef.h>
#include <descrip.h>
#include <system_data_cells.h>
#include <internals.h>
#include <misc_routines.h>
#include <exe_routines.h>
#include <queue.h>
#include <linux/vmalloc.h>

Go to the source code of this file.

Functions

asmlinkage int exe_ascefc (unsigned int efn, void *name, char prot, char perm)
 associating to a common event flag cluster - See 5.2 9.3
asmlinkage int exe_dacefc (unsigned int efn)
 dissociating to a common event flag cluster - See 5.2 9.4
asmlinkage int exe_dlcefc (void *name)
 deleting a common event flag cluster - See 5.2 9.5


Detailed Description

associate event flags

Author:
Roar Thronęs

Definition in file sysascefc.c.


Function Documentation

asmlinkage int exe_ascefc ( unsigned int  efn,
void *  name,
char  prot,
char  perm 
)

associating to a common event flag cluster - See 5.2 9.3

Does not do mutex lock, and no access check regarding uic and group check. No priv check, no tqe quota. No sch_gw_cebcnt. Does not set protection and permanent flag.

Parameters:
efn event flag number
name event flag name
prot protection
perm permanent

test event flag range

test legal logical

lock ceb mutex - MISSING

search ceb list

access check - MISSING

if permanent check privs - MISSING

if not permanent charge tqe quota - MISSING

create ceb cluster

incr cebcnt, set perm flag, set prot flag - MISSING

unlock mutex - MISSING

Definition at line 42 of file sysascefc.c.

References _pcb, _ceb::ceb_l_cebfl, _ceb::ceb_l_refc, _ceb::ceb_l_state, _ceb::ceb_l_wqfl, _ceb::ceb_t_efcnam, exe_std_allocceb(), getefcp(), qhead_init(), sch_gq_cebhd, SS__ILLEFC, SS__IVLOGNAM, and SS__NORMAL.

asmlinkage int exe_dacefc ( unsigned int  efn  ) 

dissociating to a common event flag cluster - See 5.2 9.4

Does not do mutex lock, and no access check regarding uic and group check. No priv check, no tqe quota. No sch_gw_cebcnt. Does not set protection and permanent flag. The use of vfree indicates very early code. Change.

Parameters:
efn event flag number

test event flag range

lock ceb mutex - MISSING

test if it has associated cluster

locate and clear cluster

decr refc

if temporary etc and no associated process, delete cluster

if noquota return job quota - MISSING

remove from ceb list

decr cebcnt - MISSING

vfree - change

unlock ceb mutex - MISSING

Definition at line 104 of file sysascefc.c.

References _pcb, _ceb::ceb_l_refc, getefcp(), SS__ILLEFC, SS__NORMAL, and vfree().

asmlinkage int exe_dlcefc ( void *  name  ) 

deleting a common event flag cluster - See 5.2 9.5

Does not do mutex lock, and no access check regarding uic and group check. No priv check, no tqe quota. No sch_gw_cebcnt. Does not set protection and permanent flag. The use of vfree indicates very early code. Change.

Parameters:
name event flag name

lock ceb mutex - MISSING

scan ceb list

test protection and privs - MISSING

if not deleting temporary, set noquota and clear perm flags

if temporary etc and ...

remove from ceb list

vfree - change

unlock ceb mutex - MISSING

Definition at line 148 of file sysascefc.c.

References _ceb::ceb_l_cebfl, _ceb::ceb_l_refc, sch_gq_cebhd, SS__NORMAL, and vfree().


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