From 71c759e3fa6fb725c51e3800947848cd549222bf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 18 Jul 2011 00:58:02 +0200 Subject: Prevent driver holding hardware locks from unloading --- driver/common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver/common.h') diff --git a/driver/common.h b/driver/common.h index 3d26a97..5de501c 100644 --- a/driver/common.h +++ b/driver/common.h @@ -71,9 +71,13 @@ typedef struct { atomic_t umem_count; /* id for next umem entry */ int msi_mode; /* Flag specifying if interrupt have been initialized in MSI mode */ + atomic_t refs; /* Reference counter */ } pcidriver_privdata_t; +void pcidriver_module_get(pcidriver_privdata_t *privdata); +void pcidriver_module_put(pcidriver_privdata_t *privdata); + /*************************************************************************/ /* Some nice defines that make code more readable */ /* This is to print nice info in the log */ -- cgit v1.2.3