2
* Copyright (C) 2006 Red Hat GmbH
4
* Module Author: Heinz Mauelshagen (Mauelshagen@RedHat.com)
6
* This file is released under the GPL.
13
/* Factor out to dm.h! */
14
#define STR_LEN(ptr, str) ptr, str, strlen(ptr)
16
enum lock_type { RAID45_EX, RAID45_SHARED };
18
struct dmraid45_locking_type {
19
/* Request a lock on a stripe. */
20
void* (*lock)(sector_t key, enum lock_type type);
22
/* Release a lock on a stripe. */
23
void (*unlock)(void *lock_handle);