Lines Matching defs:snapshot
65 #define IOC_IDLE 0 /* snapshot ioctl states */
66 #define IOC_SNAP 1 /* snapshot in progress */
67 #define IOC_DONE 2 /* snapshot done, but not copied out */
76 int16_t ioc_state; /* snapshot ioctl state */
77 char *snapshot; /* snapshot of all prom nodes */
78 size_t size; /* size of snapshot */
273 ASSERT(st->snapshot == NULL && st->size == 0);
308 if (st->snapshot) {
309 kmem_free(st->snapshot, st->size);
310 st->snapshot = NULL;
481 if (st->snapshot == NULL)
1183 ASSERT(st->snapshot == NULL && st->size == 0);
1185 prom_nextnode(0), flag, &st->snapshot, &st->size));
1196 /* copyin flag and create snapshot */
1204 /* copyout the size of the snapshot */
1207 kmem_free(st->snapshot, st->size);
1208 st->snapshot = NULL;
1227 /* copyin size and copyout snapshot */
1232 else if (copyout(st->snapshot, (void *)arg, st->size) != 0)
1237 * on error keep the snapshot until a successful
1244 kmem_free(st->snapshot, st->size);
1245 st->snapshot = NULL;