| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: dm.h,v 1.26 2014/06/14 07:39:00 hannken Exp $ */ | | 1 | /* $NetBSD: dm.h,v 1.27 2014/10/02 21:58:16 justin Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2008 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2008 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Adam Hamsik. | | 8 | * by Adam Hamsik. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -240,27 +240,27 @@ typedef struct dm_target { | | | @@ -240,27 +240,27 @@ typedef struct dm_target { |
240 | int (*deps) (dm_table_entry_t *, prop_array_t); | | 240 | int (*deps) (dm_table_entry_t *, prop_array_t); |
241 | /* | | 241 | /* |
242 | * Status routine is called to get params string, which is target | | 242 | * Status routine is called to get params string, which is target |
243 | * specific. When dm_table_status_ioctl is called with flag | | 243 | * specific. When dm_table_status_ioctl is called with flag |
244 | * DM_STATUS_TABLE_FLAG I have to sent params string back. | | 244 | * DM_STATUS_TABLE_FLAG I have to sent params string back. |
245 | */ | | 245 | */ |
246 | char * (*status)(void *); | | 246 | char * (*status)(void *); |
247 | int (*strategy)(dm_table_entry_t *, struct buf *); | | 247 | int (*strategy)(dm_table_entry_t *, struct buf *); |
248 | int (*sync)(dm_table_entry_t *); | | 248 | int (*sync)(dm_table_entry_t *); |
249 | int (*upcall)(dm_table_entry_t *, struct buf *); | | 249 | int (*upcall)(dm_table_entry_t *, struct buf *); |
250 | int (*secsize)(dm_table_entry_t *, unsigned *); | | 250 | int (*secsize)(dm_table_entry_t *, unsigned *); |
251 | | | 251 | |
252 | uint32_t version[3]; | | 252 | uint32_t version[3]; |
253 | int ref_cnt; | | 253 | uint32_t ref_cnt; |
254 | | | 254 | |
255 | TAILQ_ENTRY(dm_target) dm_target_next; | | 255 | TAILQ_ENTRY(dm_target) dm_target_next; |
256 | } dm_target_t; | | 256 | } dm_target_t; |
257 | | | 257 | |
258 | /* Interface structures */ | | 258 | /* Interface structures */ |
259 | | | 259 | |
260 | /* | | 260 | /* |
261 | * This structure is used to translate command sent to kernel driver in | | 261 | * This structure is used to translate command sent to kernel driver in |
262 | * <key>command</key> | | 262 | * <key>command</key> |
263 | * <value></value> | | 263 | * <value></value> |
264 | * to function which I can call, and if the command is allowed for | | 264 | * to function which I can call, and if the command is allowed for |
265 | * non-superusers. | | 265 | * non-superusers. |
266 | */ | | 266 | */ |