Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbookisa_index/pl/units/?format=api&page=8
https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/units/?format=api&page=7", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "If this function is present in the driver and the driver is compiled as a loadable module then the driver gets the ability to be unloaded. This is an important feature if the hardware supports hot plug. But the ISA bus does not support hot plug, so this feature is not particularly important for the ISA devices. The ability to unload a driver may be useful when debugging it, but in many cases installation of the new version of the driver would be required only after the old version somehow wedges the system and a reboot will be needed anyway, so the efforts spent on writing the detach routine may not be worth it. Another argument that unloading would allow upgrading the drivers on a production machine seems to be mostly theoretical. Installing a new version of a driver is a dangerous operation which should never be performed on a production machine (and which is not permitted when the system is running in secure mode). Still, the detach routine may be provided for the sake of completeness." ], "previous_source": "", "target": [ "" ], "id_hash": 3771762296198991165, "content_hash": 3771762296198991165, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1061", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 351, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 177, "source_unit": "https://translate-dev.freebsd.org/api/units/1095432/?format=api", "priority": 100, "id": 1506194, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=b457fdd322270d3d", "url": "https://translate-dev.freebsd.org/api/units/1506194/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.008613Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "The detach routine returns 0 if the driver was successfully detached or the error code otherwise." ], "previous_source": "", "target": [ "" ], "id_hash": 4088958824430684394, "content_hash": 4088958824430684394, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1063", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 352, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1095434/?format=api", "priority": 100, "id": 1506195, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=b8bee662f763c8ea", "url": "https://translate-dev.freebsd.org/api/units/1506195/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.011935Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "The logic of detach is a mirror of the attach. The first thing to do is to detach the driver from its kernel subsystem. If the device is currently open then the driver has two choices: refuse to be detached or forcibly close and proceed with detach. The choice used depends on the ability of the particular kernel subsystem to do a forced close and on the preferences of the driver's author. Generally the forced close seems to be the preferred alternative." ], "previous_source": "", "target": [ "" ], "id_hash": -627797372012373971, "content_hash": -627797372012373971, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1065", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 353, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 82, "source_unit": "https://translate-dev.freebsd.org/api/units/1095436/?format=api", "priority": 100, "id": 1506196, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=77499d9dca47582d", "url": "https://translate-dev.freebsd.org/api/units/1506196/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.015062Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ " struct xxx_softc *sc = device_get_softc(dev);\n int error;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4022609819616453485, "content_hash": 4022609819616453485, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1070", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 354, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1095438/?format=api", "priority": 100, "id": 1506197, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=b7d32e51783ca36d", "url": "https://translate-dev.freebsd.org/api/units/1506197/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.018517Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ " error = xxx_detach_subsystem(sc);\n if(error)\n return error;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5450566978799305275, "content_hash": -5450566978799305275, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1074", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 355, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1095440/?format=api", "priority": 100, "id": 1506198, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=345bb2360c317dc5", "url": "https://translate-dev.freebsd.org/api/units/1506198/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.021785Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "Next the driver may want to reset the hardware to some consistent state. That includes stopping any ongoing transfers, disabling the DMA channels and interrupts to avoid memory corruption by the device. For most of the drivers this is exactly what the shutdown routine does, so if it is included in the driver we can just call it." ], "previous_source": "", "target": [ "" ], "id_hash": 5718912815048469443, "content_hash": 5718912815048469443, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1077", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 356, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 58, "source_unit": "https://translate-dev.freebsd.org/api/units/1095442/?format=api", "priority": 100, "id": 1506199, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=cf5da8e7ba64abc3", "url": "https://translate-dev.freebsd.org/api/units/1506199/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.024770Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "`xxx_isa_shutdown(dev);`" ], "previous_source": "", "target": [ "" ], "id_hash": -6787388946345649551, "content_hash": -6787388946345649551, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1079", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 357, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1095444/?format=api", "priority": 100, "id": 1506200, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=21ce59b6e4a79a71", "url": "https://translate-dev.freebsd.org/api/units/1506200/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.028060Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "And finally release all the resources and return success." ], "previous_source": "", "target": [ "" ], "id_hash": -8598440780692837175, "content_hash": -8598440780692837175, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1081", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 358, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1095446/?format=api", "priority": 100, "id": 1506201, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=08ac33aa9c922cc9", "url": "https://translate-dev.freebsd.org/api/units/1506201/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.031458Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "xxx_isa_shutdown" ], "previous_source": "", "target": [ "" ], "id_hash": 5390875601546540898, "content_hash": 5390875601546540898, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1089", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 359, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1095448/?format=api", "priority": 100, "id": 1506202, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=cad03ccc2a807762", "url": "https://translate-dev.freebsd.org/api/units/1506202/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.035327Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "This routine is called when the system is about to be shut down. It is expected to bring the hardware to some consistent state. For most of the ISA devices no special action is required, so the function is not really necessary because the device will be re-initialized on reboot anyway. But some devices have to be shut down with a special procedure, to make sure that they will be properly detected after soft reboot (this is especially true for many devices with proprietary identification protocols). In any case disabling DMA and interrupts in the device registers and stopping any ongoing transfers is a good idea. The exact action depends on the hardware, so we do not consider it here in any detail." ], "previous_source": "", "target": [ "" ], "id_hash": -6648411602860727667, "content_hash": -6648411602860727667, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1092", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 360, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 123, "source_unit": "https://translate-dev.freebsd.org/api/units/1095450/?format=api", "priority": 100, "id": 1506203, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=23bc18df3ae6a28d", "url": "https://translate-dev.freebsd.org/api/units/1506203/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.038301Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "xxx_intr" ], "previous_source": "", "target": [ "" ], "id_hash": -4472623533286185877, "content_hash": -4472623533286185877, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1094", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 361, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1095452/?format=api", "priority": 100, "id": 1506204, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=41ee0c97ec6ca46b", "url": "https://translate-dev.freebsd.org/api/units/1506204/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.041266Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "The interrupt handler is called when an interrupt is received which may be from this particular device. The ISA bus does not support interrupt sharing (except in some special cases) so in practice if the interrupt handler is called then the interrupt almost for sure came from its device. Still, the interrupt handler must poll the device registers and make sure that the interrupt was generated by its device. If not it should just return." ], "previous_source": "", "target": [ "" ], "id_hash": 8547301698730710347, "content_hash": 8547301698730710347, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1097", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 362, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 75, "source_unit": "https://translate-dev.freebsd.org/api/units/1095454/?format=api", "priority": 100, "id": 1506205, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=f69e1d9c04efd54b", "url": "https://translate-dev.freebsd.org/api/units/1506205/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.043883Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "The old convention for the ISA drivers was getting the device unit number as an argument. This is obsolete, and the new drivers receive whatever argument was specified for them in the attach routine when calling `bus_setup_intr()`. By the new convention it should be the pointer to the structure softc. So the interrupt handler commonly starts as:" ], "previous_source": "", "target": [ "" ], "id_hash": 3361357301625304609, "content_hash": 3361357301625304609, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1099", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 363, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 57, "source_unit": "https://translate-dev.freebsd.org/api/units/1095456/?format=api", "priority": 100, "id": 1506206, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=aea5f0a8168ab621", "url": "https://translate-dev.freebsd.org/api/units/1506206/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.046605Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ " static void\n xxx_intr(struct xxx_softc *sc)\n {\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1652431550478474277, "content_hash": -1652431550478474277, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1106", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 364, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1095458/?format=api", "priority": 100, "id": 1506207, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=69116242821523db", "url": "https://translate-dev.freebsd.org/api/units/1506207/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.049313Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "It runs at the interrupt priority level specified by the interrupt type parameter of `bus_setup_intr()`. That means that all the other interrupts of the same type as well as all the software interrupts are disabled." ], "previous_source": "", "target": [ "" ], "id_hash": -4383718602326472685, "content_hash": -4383718602326472685, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1109", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 365, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 35, "source_unit": "https://translate-dev.freebsd.org/api/units/1095460/?format=api", "priority": 100, "id": 1506208, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=4329e728390f0813", "url": "https://translate-dev.freebsd.org/api/units/1506208/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.051813Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "To avoid races it is commonly written as a loop:" ], "previous_source": "", "target": [ "" ], "id_hash": -893505207657346504, "content_hash": -893505207657346504, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1111", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 366, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1095462/?format=api", "priority": 100, "id": 1506209, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=7399a1bf649f4a38", "url": "https://translate-dev.freebsd.org/api/units/1506209/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.054534Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ " while(xxx_interrupt_pending(sc)) {\n xxx_process_interrupt(sc);\n xxx_acknowledge_interrupt(sc);\n }\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7964814054272216094, "content_hash": 7964814054272216094, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1119", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 367, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1095464/?format=api", "priority": 100, "id": 1506210, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=ee88b42ed6ef2c1e", "url": "https://translate-dev.freebsd.org/api/units/1506210/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.057520Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookisa_index/pl/?format=api", "source": [ "The interrupt handler has to acknowledge interrupt to the device only but not to the interrupt controller, the system takes care of the latter." ], "previous_source": "", "target": [ "" ], "id_hash": 7871880637539991116, "content_hash": 7871880637539991116, "location": "documentation/content/en/books/arch-handbook/isa/_index.adoc:1121", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 368, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1095466/?format=api", "priority": 100, "id": 1506211, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookisa_index/pl/?checksum=ed3e89bb9ad8be4c", "url": "https://translate-dev.freebsd.org/api/units/1506211/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2023-04-15T02:21:25.060454Z" } ] }{ "count": 368, "next": null, "previous": "