summaryrefslogtreecommitdiffstats
path: root/protocols/software.c
diff options
context:
space:
mode:
authorzilio nicolas <nicolas.zilio@kit.edu>2015-07-10 10:52:06 +0200
committerzilio nicolas <nicolas.zilio@kit.edu>2015-07-10 10:52:06 +0200
commitedd5ccf24c146915ee475bd223e2ad695520a241 (patch)
treec856296a36226405050a467e22c9bd59fce6e4de /protocols/software.c
parentfe821c4f1b85d2a2d358da098f85327d41212dc3 (diff)
downloadpcitool-edd5ccf24c146915ee475bd223e2ad695520a241.tar.gz
pcitool-edd5ccf24c146915ee475bd223e2ad695520a241.tar.bz2
pcitool-edd5ccf24c146915ee475bd223e2ad695520a241.tar.xz
pcitool-edd5ccf24c146915ee475bd223e2ad695520a241.zip
last modification+comments update
Diffstat (limited to 'protocols/software.c')
-rw-r--r--protocols/software.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/software.c b/protocols/software.c
index 5170583..4b75277 100644
--- a/protocols/software.c
+++ b/protocols/software.c
@@ -61,7 +61,7 @@ pcilib_register_bank_context_t* pcilib_software_registers_open(pcilib_t *ctx, pc
bank_ctx = calloc(1, sizeof(pcilib_software_register_bank_context_t));
/* prtoection against several kernel memory allocation*/
- semId=pcilib_init_lock(ctx,"thisatest2");
+ semId=pcilib_init_lock(ctx,PCILIB_LOCK,"%s_%s",bank_desc->name,"software_register");
pcilib_lock(semId,MUTEX_LOCK);
handle = pcilib_alloc_kernel_memory(ctx, PCILIB_KMEM_TYPE_PAGE, 1, PCILIB_KMEM_PAGE_SIZE, 0, PCILIB_KMEM_USE(PCILIB_KMEM_USE_SOFTWARE_REGISTERS, bank), PCILIB_KMEM_FLAG_REUSE|PCILIB_KMEM_FLAG_PERSISTENT); /**< get the kernel memory*/