Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

s390dyn.c File Reference

#include <linux/module.h>
#include <linux/init.h>
#include <linux/smp_lock.h>
#include <asm/irq.h>
#include <asm/s390io.h>
#include <asm/s390dyn.h>

Include dependency graph for s390dyn.c:

Go to the source code of this file.

Functions

int s390_device_register (devreg_t *drinfo)
int s390_device_unregister (devreg_t *dreg)
devreg_ts390_search_devreg (ioinfo_t *ioinfo)
 EXPORT_SYMBOL (s390_device_register)
 EXPORT_SYMBOL (s390_device_unregister)

Variables

static devreg_tdevreg_anchor = NULL
static spinlock_t dyn_lock = SPIN_LOCK_UNLOCKED


Function Documentation

EXPORT_SYMBOL s390_device_unregister   ) 
 

EXPORT_SYMBOL s390_device_register   ) 
 

int s390_device_register devreg_t drinfo  ) 
 

Definition at line 21 of file s390dyn.c.

References _devreg::ci, DEVREG_EXACT_MATCH, DEVREG_MATCH_CU_TYPE, DEVREG_MATCH_DEV_TYPE, DEVREG_NO_CU_INFO, DEVREG_TYPE_DEVNO, EBUSY, EINVAL, _devreg::flag, memcmp, _devreg::next, NULL, _devreg::prev, ret, spin_lock_irqsave, and spin_unlock_irqrestore.

Referenced by dasd_add_range(), dasd_eckd_cleanup(), dasd_eckd_init(), dasd_fba_cleanup(), dasd_fba_init(), tape3480_init(), tape3490_init(), and tape_parm_parse().

int s390_device_unregister devreg_t dreg  ) 
 

Definition at line 104 of file s390dyn.c.

References EINVAL, _devreg::next, NULL, _devreg::prev, ret, spin_lock_irqsave, and spin_unlock_irqrestore.

Referenced by tape3480_shutdown(), and tape3490_shutdown().

devreg_t* s390_search_devreg ioinfo_t ioinfo  ) 
 

Definition at line 155 of file s390dyn.c.

References _devreg::ci, _ioinfo::devno, DEVREG_EXACT_MATCH, DEVREG_MATCH_CU_TYPE, DEVREG_MATCH_DEV_TYPE, DEVREG_NO_CU_INFO, DEVREG_TYPE_DEVNO, _devreg::flag, memcmp, _devreg::next, NULL, _ioinfo::senseid, spin_lock_irqsave, spin_unlock_irqrestore, and _ioinfo::ui.

Referenced by s390_do_crw_pending().


Variable Documentation

devreg_t* devreg_anchor = NULL [static]
 

Definition at line 18 of file s390dyn.c.

spinlock_t dyn_lock = SPIN_LOCK_UNLOCKED [static]
 

Definition at line 19 of file s390dyn.c.