sys/src/ucbcredel.c File Reference

QIO UCB routines for creation and deletion - TODO still more doc. More...

#include <ssdef.h>
#include <misc.h>
#include <crbdef.h>
#include <dyndef.h>
#include <linux/vmalloc.h>
#include <ucbdef.h>
#include <ddbdef.h>
#include <ioc_routines.h>
#include <queue.h>
#include <linux/slab.h>

Go to the source code of this file.

Functions

int ioc_std_link_ucb (struct _ucb *ucb)
 link ucb into ddb list
int ioc_std_copy_ucb (struct _ucb *src_ucb, struct _ucb **new_ucb)
 copy ucb
int ioc_std_create_ucb (struct _pcb *pcb, struct _ucb *ucb, struct _ucb **new_ucb_p)
int ioc_std_clone_ucb (struct _ucb *tmpl_ucb, struct _ucb **new_ucb)
 clone a template ucb - see 5.2 21.5.2.2.2
int init_ddb (struct _ddb *ddb, struct _ddt *ddt, struct _ucb *ucb, char *sddb)
int init_ucb (struct _ucb *ucb, struct _ddb *ddb, struct _ddt *ddt, struct _crb *crb)
int init_crb (struct _crb *crb)
int ioc_std_copy_mscp_ucb (struct _ucb *src_ucb, struct _ucb **new_ucb)
int ioc_std_clone_mscp_ucb (struct _ucb *tmpl_ucb, struct _ucb **new_ucb)
int ioc_delete_ucb ()


Detailed Description

QIO UCB routines for creation and deletion - TODO still more doc.

Author:
Roar Thronęs

Definition in file ucbcredel.c.


Function Documentation

int init_crb ( struct _crb crb  ) 

Definition at line 150 of file ucbcredel.c.

References _crb::crb_b_type, and SS__NORMAL.

Referenced by mb_iodb_vmsinit().

int init_ddb ( struct _ddb ddb,
struct _ddt ddt,
struct _ucb ucb,
char *  sddb 
)

Definition at line 126 of file ucbcredel.c.

References _ddb::ddb_b_type, _ddb::ddb_l_ddt, _ddb::ddb_ps_ucb, _ddb::ddb_t_name, and SS__NORMAL.

Referenced by mb_iodb_vmsinit().

int init_ucb ( struct _ucb ucb,
struct _ddb ddb,
struct _ddt ddt,
struct _crb crb 
)

int ioc_delete_ucb (  ) 

Definition at line 203 of file ucbcredel.c.

int ioc_std_clone_mscp_ucb ( struct _ucb tmpl_ucb,
struct _ucb **  new_ucb 
)

int ioc_std_clone_ucb ( struct _ucb tmpl_ucb,
struct _ucb **  new_ucb 
)

clone a template ucb - see 5.2 21.5.2.2.2

Parameters:
tmpl_ucb template ucb
new_ucb 

give unique unit number

link ucb into the ddb's device chain

Definition at line 108 of file ucbcredel.c.

References ioc_std_copy_ucb(), ioc_std_link_ucb(), SS__NORMAL, _ucb::ucb_w_unit, and _ucb::ucb_w_unit_seed.

Referenced by clone_init_ucb(), exe_assign(), and ioc_std_create_ucb().

int ioc_std_copy_mscp_ucb ( struct _ucb src_ucb,
struct _ucb **  new_ucb 
)

int ioc_std_copy_ucb ( struct _ucb src_ucb,
struct _ucb **  new_ucb 
)

copy ucb

Parameters:
ucb 
new_ucb 

set refcount 1

set device online

clear template bit

set u->ucb_l_charge - MISSING

Definition at line 54 of file ucbcredel.c.

References kmalloc(), qhead_init(), SS__NORMAL, _ucb::ucb_l_bcnt, _ucb::ucb_l_boff, _ucb::ucb_l_devsts, _ucb::ucb_l_fpc, _ucb::ucb_l_fqfl, _ucb::ucb_l_fr3, _ucb::ucb_l_fr4, _ucb::ucb_l_ioqfl, _ucb::ucb_l_mb_msgqfl, _ucb::ucb_l_opcnt, _ucb::ucb_l_refc, _ucb::ucb_l_sts, _ucb::ucb_l_svapte, _ucb::ucb_w_bufquo, and _ucb::ucb_w_size.

Referenced by ioc_std_clone_ucb().

int ioc_std_create_ucb ( struct _pcb *  pcb,
struct _ucb ucb,
struct _ucb **  new_ucb_p 
)

Definition at line 94 of file ucbcredel.c.

References ioc_std_clone_ucb(), and SS__NORMAL.

int ioc_std_link_ucb ( struct _ucb ucb  ) 

link ucb into ddb list

Definition at line 28 of file ucbcredel.c.

References SS__NORMAL, _ucb::ucb_l_crb, _ucb::ucb_l_ddb, _ucb::ucb_l_link, and _ucb::ucb_w_unit.

Referenced by ioc_std_clone_mscp_ucb(), and ioc_std_clone_ucb().


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