Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/1246766/?format=api
https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookscsi_index/en/?format=api", "source": [ " if ((ccb_h->flags & CAM_SG_LIST_PHYS) != 0) {\n /* The SG list pointer is physical */\n rv = setup_hcb_for_physical_sg_list(hcb, segs, csio->sglist_cnt);\n } else if (!(ccb_h->flags & CAM_DATA_PHYS)) {\n /* SG buffer pointers are virtual */\n for (i = 0; i < csio->sglist_cnt; i++) {\n rv = add_virtual_chunk(hcb, segs[i].ds_addr,\n segs[i].ds_len, dir);\n if (rv != CAM_REQ_CMP)\n break;\n }\n } else {\n /* SG buffer pointers are physical */\n for (i = 0; i < csio->sglist_cnt; i++) {\n rv = add_physical_chunk(hcb, segs[i].ds_addr,\n segs[i].ds_len, dir);\n if (rv != CAM_REQ_CMP)\n break;\n }\n }\n }\n if (rv != CAM_REQ_CMP) {\n /* we expect that add_*_chunk() functions return CAM_REQ_CMP\n * if they added a chunk successfully, CAM_REQ_TOO_BIG if\n * the request is too big (too many bytes or too many chunks),\n * CAM_REQ_INVALID in case of other troubles\n */\n free_hcb_and_ccb_done(hcb, ccb, rv);\n return;\n }\n end_data:\n" ], "previous_source": "", "target": [ " if ((ccb_h->flags & CAM_SG_LIST_PHYS) != 0) {\n /* The SG list pointer is physical */\n rv = setup_hcb_for_physical_sg_list(hcb, segs, csio->sglist_cnt);\n } else if (!(ccb_h->flags & CAM_DATA_PHYS)) {\n /* SG buffer pointers are virtual */\n for (i = 0; i < csio->sglist_cnt; i++) {\n rv = add_virtual_chunk(hcb, segs[i].ds_addr,\n segs[i].ds_len, dir);\n if (rv != CAM_REQ_CMP)\n break;\n }\n } else {\n /* SG buffer pointers are physical */\n for (i = 0; i < csio->sglist_cnt; i++) {\n rv = add_physical_chunk(hcb, segs[i].ds_addr,\n segs[i].ds_len, dir);\n if (rv != CAM_REQ_CMP)\n break;\n }\n }\n }\n if (rv != CAM_REQ_CMP) {\n /* we expect that add_*_chunk() functions return CAM_REQ_CMP\n * if they added a chunk successfully, CAM_REQ_TOO_BIG if\n * the request is too big (too many bytes or too many chunks),\n * CAM_REQ_INVALID in case of other troubles\n */\n free_hcb_and_ccb_done(hcb, ccb, rv);\n return;\n }\n end_data:\n" ], "id_hash": -1106796684279926089, "content_hash": -1106796684279926089, "location": "documentation/content/en/books/arch-handbook/scsi/_index.adoc:533", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 132, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 137, "source_unit": "https://translate-dev.freebsd.org/api/units/1246766/?format=api", "priority": 100, "id": 1246766, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookscsi_index/en/?checksum=70a3de479aea32b7", "url": "https://translate-dev.freebsd.org/api/units/1246766/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-07-24T14:55:37.763402Z" }{ "translation": "