* Allocate memory for new intr_map_data structure. * Initialize common fields. */
| 1284 | * Initialize common fields. |
| 1285 | */ |
| 1286 | struct intr_map_data * |
| 1287 | intr_alloc_map_data(enum intr_map_data_type type, size_t len, int flags) |
| 1288 | { |
| 1289 | struct intr_map_data *data; |
| 1290 | |
| 1291 | data = malloc(len, M_INTRNG, flags); |
| 1292 | data->type = type; |
| 1293 | data->len = len; |
| 1294 | return (data); |
| 1295 | } |
| 1296 | |
| 1297 | void intr_free_intr_map_data(struct intr_map_data *data) |
| 1298 | { |
no test coverage detected