Lines Matching defs:copy
19 * Permission is hereby granted, free of charge, to any person obtaining a copy
21 * restriction, including without limitation the rights to use, copy, modify,
321 /* Keep a private copy so we can reissue requests when recovering. */
896 struct blk_shadow *copy;
899 /* Stage 1: Make a safe copy of the shadow state. */
900 copy = kmalloc(sizeof(info->shadow),
902 if (!copy)
904 memcpy(copy, info->shadow, sizeof(info->shadow));
916 if (copy[i].request == 0)
919 /* Grab a request slot and copy shadow state into it. */
921 *req = copy[i].req;
925 memcpy(&info->shadow[req->id], ©[i], sizeof(copy[i]));
941 kfree(copy);