#include <starlet.h>
#include <iodef.h>
#include <ssdef.h>
#include <descrip.h>
#include <misc.h>
#include <irpdef.h>
#include <ucbdef.h>
#include <ddbdef.h>
#include <ccbdef.h>
#include <lnmdef.h>
#include <sbdef.h>
#include <system_data_cells.h>
#include <sysgen.h>
#include <ioc_routines.h>
#include <linux/vmalloc.h>
#include <linux/linkage.h>
#include <exe_routines.h>
#include <lnmsub.h>
#include <lnmstrdef.h>
Go to the source code of this file.
Functions | |
int | ioc_ffchan (unsigned short int *chan) |
find first free i/o channel - see 5.2 21.5.2.1 | |
int | ioc_searchdev (struct return_values *r, void *devnam) |
long int | dsc_strtol (const char *nptr, int len, char **endptr, int base) |
int | ioc_search (struct return_values *r, void *devnam) |
search for device - see 5.2 21.4.1 | |
int | ioc_verify_chan (unsigned short int chan, struct _ccb **ccbp) |
verify that the chann is legal - see 5.2 21.5.3 | |
int | ioc_std_trandevnam (void *descr_p, int flags, char *buf, int *outlen, void **out_p) |
translate eventual device name logical | |
int | ioc_std_search (void *descr_p, int flags, void *lock_val_p, struct _ucb **ucb_p, struct _ddb **ddb_p, struct _sb **sb_p) |
int | ioc_std_searchdev (void *descr_p, struct _ucb **ucb_p, struct _ddb **ddb_p, struct _sb **sb_p) |
Variables | |
struct _sb | othersb |
Definition in file iosubpagd.c.
long int dsc_strtol | ( | const char * | nptr, | |
int | len, | |||
char ** | endptr, | |||
int | base | |||
) |
int ioc_ffchan | ( | unsigned short int * | chan | ) |
find first free i/o channel - see 5.2 21.5.2.1
chan | return value |
Definition at line 36 of file iosubpagd.c.
References CHANNELCNT, ctl_gl_ccbbase, SS__NOIOCHAN, and SS__NORMAL.
Referenced by exe_assign(), and exe_crembx().
int ioc_search | ( | struct return_values * | r, | |
void * | devnam | |||
) |
search for device - see 5.2 21.4.1
r | struct for return ddb etc | |
devnam | device name |
translate devnam argument to device
search i/o db for name
access check - MISSING
if cluster device, do ioc_lock_dev - MISSING
Definition at line 70 of file iosubpagd.c.
References _ddb::ddb_ps_link, _ddb::ddb_ps_sb, _ddb::ddb_ps_ucb, _ddb::ddb_t_name, dsc_strtol(), ioc_gl_devlist, ioc_std_trandevnam(), _sb::sb_t_nodename, SS__NORMAL, SS__NOSUCHDEV, _ucb::ucb_l_link, _ucb::ucb_w_unit, and return_values::val1.
Referenced by exe_assign(), exe_getdvi(), and ioc_searchdev().
int ioc_searchdev | ( | struct return_values * | r, | |
void * | devnam | |||
) |
int ioc_std_search | ( | void * | descr_p, | |
int | flags, | |||
void * | lock_val_p, | |||
struct _ucb ** | ucb_p, | |||
struct _ddb ** | ddb_p, | |||
struct _sb ** | sb_p | |||
) |
Definition at line 228 of file iosubpagd.c.
int ioc_std_searchdev | ( | void * | descr_p, | |
struct _ucb ** | ucb_p, | |||
struct _ddb ** | ddb_p, | |||
struct _sb ** | sb_p | |||
) |
Definition at line 232 of file iosubpagd.c.
int ioc_std_trandevnam | ( | void * | descr_p, | |
int | flags, | |||
char * | buf, | |||
int * | outlen, | |||
void ** | out_p | |||
) |
translate eventual device name logical
check for :: - MISSING
Definition at line 170 of file iosubpagd.c.
References item_list_3::bufaddr, item_list_3::buflen, exe_trnlnm(), item_list_3::item_code, LNM__STRING, lnm_searchlog(), struct_lnm_ret::mylnmb, and item_list_3::retlenaddr.
Referenced by ioc_search().
int ioc_verify_chan | ( | unsigned short int | chan, | |
struct _ccb ** | ccbp | |||
) |
verify that the chann is legal - see 5.2 21.5.3
chan | channel | |
ccbp | return value |
TODO: need to be properly implemented
Definition at line 155 of file iosubpagd.c.
References _ccb::ccb_b_amod, ctl_gl_ccbbase, and SS__NORMAL.
Referenced by exe_dassgn().