Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbookdriverbasics_index/fr/units/?format=api
{ "count": 68, "next": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/units/?format=api&page=2", "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Writing FreeBSD Device Drivers" ], "previous_source": "", "target": [ "" ], "id_hash": 8486075533268508668, "content_hash": 8486075533268508668, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:1, documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:14", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1136036/?format=api", "priority": 100, "id": 1729177, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=f5c498bc819a5ffc", "url": "https://translate-dev.freebsd.org/api/units/1729177/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.948493Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Chapter 9. Writing FreeBSD Device Drivers" ], "previous_source": "", "target": [ "" ], "id_hash": -2703317054944986056, "content_hash": -2703317054944986056, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1136034/?format=api", "priority": 100, "id": 1729178, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=5a7be37618bfbc38", "url": "https://translate-dev.freebsd.org/api/units/1729178/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.949312Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Introduction" ], "previous_source": "", "target": [ "" ], "id_hash": 5330140601372690748, "content_hash": 5330140601372690748, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:52", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1136038/?format=api", "priority": 100, "id": 1729179, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=c9f876a2fbb4c93c", "url": "https://translate-dev.freebsd.org/api/units/1729179/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.950010Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "This chapter provides a brief introduction to writing device drivers for FreeBSD. A device in this context is a term used mostly for hardware-related stuff that belongs to the system, like disks, printers, or a graphics display with its keyboard. A device driver is the software component of the operating system that controls a specific device. There are also so-called pseudo-devices where a device driver emulates the behavior of a device in software without any particular underlying hardware. Device drivers can be compiled into the system statically or loaded on demand through the dynamic kernel linker facility `kld'." ], "previous_source": "", "target": [ "" ], "id_hash": 9075963108666372159, "content_hash": 9075963108666372159, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:55", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 98, "source_unit": "https://translate-dev.freebsd.org/api/units/1136040/?format=api", "priority": 100, "id": 1729180, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=fdf44c5c5e9bf03f", "url": "https://translate-dev.freebsd.org/api/units/1729180/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.950687Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Most devices in a UNIX(R)-like operating system are accessed through device-nodes, sometimes also called special files. These files are usually located under the directory [.filename]#/dev# in the filesystem hierarchy." ], "previous_source": "", "target": [ "" ], "id_hash": -6100535167797885519, "content_hash": -6100535167797885519, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:57", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/1136042/?format=api", "priority": 100, "id": 1729181, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=2b568b963fa105b1", "url": "https://translate-dev.freebsd.org/api/units/1729181/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.951475Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Device drivers can roughly be broken down into two categories; character and network device drivers." ], "previous_source": "", "target": [ "" ], "id_hash": 2188068204069803364, "content_hash": 2188068204069803364, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:59", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1136044/?format=api", "priority": 100, "id": 1729182, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=9e5d94704fe85564", "url": "https://translate-dev.freebsd.org/api/units/1729182/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.952177Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Dynamic Kernel Linker Facility - KLD" ], "previous_source": "", "target": [ "" ], "id_hash": 7674421623761830195, "content_hash": 7674421623761830195, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:61", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1136046/?format=api", "priority": 100, "id": 1729183, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=ea8105ce54e68133", "url": "https://translate-dev.freebsd.org/api/units/1729183/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.952835Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "The kld interface allows system administrators to dynamically add and remove functionality from a running system. This allows device driver writers to load their new changes into a running kernel without constantly rebooting to test changes." ], "previous_source": "", "target": [ "" ], "id_hash": 6740171895959367125, "content_hash": 6740171895959367125, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:64", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/1136048/?format=api", "priority": 100, "id": 1729184, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=dd89e6a0dfbaadd5", "url": "https://translate-dev.freebsd.org/api/units/1729184/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.953467Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "The kld interface is used through:" ], "previous_source": "", "target": [ "" ], "id_hash": 2184054385523465259, "content_hash": 2184054385523465259, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:66", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1136050/?format=api", "priority": 100, "id": 1729185, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=9e4f51e45b429c2b", "url": "https://translate-dev.freebsd.org/api/units/1729185/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.954125Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "`kldload` - loads a new kernel module" ], "previous_source": "", "target": [ "" ], "id_hash": -3453289121984458492, "content_hash": -3453289121984458492, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:68", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1136052/?format=api", "priority": 100, "id": 1729186, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=501373d701655104", "url": "https://translate-dev.freebsd.org/api/units/1729186/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.954783Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "`kldunload` - unloads a kernel module" ], "previous_source": "", "target": [ "" ], "id_hash": -8302754555814929363, "content_hash": -8302754555814929363, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:69", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1136054/?format=api", "priority": 100, "id": 1729187, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=0cc6b0b8ab651c2d", "url": "https://translate-dev.freebsd.org/api/units/1729187/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.955556Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "`kldstat` - lists loaded modules" ], "previous_source": "", "target": [ "" ], "id_hash": 3587990033655218090, "content_hash": 3587990033655218090, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:70", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1136056/?format=api", "priority": 100, "id": 1729188, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=b1cb19ecf5a93faa", "url": "https://translate-dev.freebsd.org/api/units/1729188/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.956300Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Skeleton Layout of a kernel module" ], "previous_source": "", "target": [ "" ], "id_hash": -6768464181530108505, "content_hash": -6768464181530108505, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:72", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1136058/?format=api", "priority": 100, "id": 1729189, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=221195b010f15da7", "url": "https://translate-dev.freebsd.org/api/units/1729189/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.957034Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/*\n * KLD Skeleton\n * Inspired by Andrew Reiter's Daemonnews article\n */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4174900884371496136, "content_hash": 4174900884371496136, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:79", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1136060/?format=api", "priority": 100, "id": 1729190, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=b9f03a3c196d5cc8", "url": "https://translate-dev.freebsd.org/api/units/1729190/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.957809Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "#include <sys/types.h>\n#include <sys/systm.h> /* uprintf */\n#include <sys/errno.h>\n#include <sys/param.h> /* defines used in kernel.h */\n#include <sys/module.h>\n#include <sys/kernel.h> /* types used in module initialization */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6031221843115576123, "content_hash": -6031221843115576123, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:86", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/1383876/?format=api", "priority": 100, "id": 1729191, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=2c4ccbb03f84f4c5", "url": "https://translate-dev.freebsd.org/api/units/1729191/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.958605Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/*\n * Load handler that deals with the loading and unloading of a KLD.\n */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5264198659201008444, "content_hash": 5264198659201008444, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:90", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/1136064/?format=api", "priority": 100, "id": 1729192, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=c90e30ca24c3833c", "url": "https://translate-dev.freebsd.org/api/units/1729192/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.959400Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "static int\nskel_loader(struct module *m, int what, void *arg)\n{\n\tint err = 0;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1758691405577785518, "content_hash": -1758691405577785518, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:95", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1691979/?format=api", "priority": 100, "id": 1729193, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=6797df7c0d00ef52", "url": "https://translate-dev.freebsd.org/api/units/1729193/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.960195Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\tswitch (what) {\n\tcase MOD_LOAD: /* kldload */\n\t\tuprintf(\"Skeleton KLD loaded.\\n\");\n\t\tbreak;\n\tcase MOD_UNLOAD:\n\t\tuprintf(\"Skeleton KLD unloaded.\\n\");\n\t\tbreak;\n\tdefault:\n\t\terr = EOPNOTSUPP;\n\t\tbreak;\n\t}\n\treturn(err);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2589870944579107376, "content_hash": 2589870944579107376, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:109", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/1691981/?format=api", "priority": 100, "id": 1729194, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=a3f111e701be3a30", "url": "https://translate-dev.freebsd.org/api/units/1729194/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.961001Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/* Declare this module to the rest of the kernel */\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7009921927751979872, "content_hash": -7009921927751979872, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:111", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1136070/?format=api", "priority": 100, "id": 1729195, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=1eb7c125991f2ca0", "url": "https://translate-dev.freebsd.org/api/units/1729195/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.961679Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "static moduledata_t skel_mod = {\n\t\"skel\",\n\tskel_loader,\n\tNULL\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6148313205691068009, "content_hash": -6148313205691068009, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:117", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1691983/?format=api", "priority": 100, "id": 1729196, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=2aaccdb6eef0d197", "url": "https://translate-dev.freebsd.org/api/units/1729196/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.962457Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "DECLARE_MODULE(skeleton, skel_mod, SI_SUB_KLD, SI_ORDER_ANY);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2582663552962118802, "content_hash": -2582663552962118802, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:119", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1136074/?format=api", "priority": 100, "id": 1729197, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=5c28892e9f583b6e", "url": "https://translate-dev.freebsd.org/api/units/1729197/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.963234Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Makefile" ], "previous_source": "", "target": [ "" ], "id_hash": -4026927537722843054, "content_hash": -4026927537722843054, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:121", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1136076/?format=api", "priority": 100, "id": 1729198, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=481d7abd71caa052", "url": "https://translate-dev.freebsd.org/api/units/1729198/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.964026Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "FreeBSD provides a system makefile to simplify compiling a kernel module." ], "previous_source": "", "target": [ "" ], "id_hash": 4065885713308074158, "content_hash": 4065885713308074158, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:124", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1136078/?format=api", "priority": 100, "id": 1729199, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=b86ced83a71040ae", "url": "https://translate-dev.freebsd.org/api/units/1729199/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.964756Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "SRCS=skeleton.c\nKMOD=skeleton\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7203815899468211751, "content_hash": -7203815899468211751, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:129", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1136080/?format=api", "priority": 100, "id": 1729200, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=1c06e79b5ce2d9d9", "url": "https://translate-dev.freebsd.org/api/units/1729200/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.965443Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ ".include <bsd.kmod.mk>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8975336119357712390, "content_hash": 8975336119357712390, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:131", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1136082/?format=api", "priority": 100, "id": 1729201, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=fc8ecca5ae0ca806", "url": "https://translate-dev.freebsd.org/api/units/1729201/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.966274Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Running `make` with this makefile will create a file [.filename]#skeleton.ko# that can be loaded into the kernel by typing:" ], "previous_source": "", "target": [ "" ], "id_hash": 8349306993799774076, "content_hash": 8349306993799774076, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:134", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1136084/?format=api", "priority": 100, "id": 1729202, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=f3deb2796e1ebf7c", "url": "https://translate-dev.freebsd.org/api/units/1729202/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.966974Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "# kldload -v ./skeleton.ko\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3661879904106564154, "content_hash": -3661879904106564154, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:138", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1136086/?format=api", "priority": 100, "id": 1729203, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=4d2e63a0f19635c6", "url": "https://translate-dev.freebsd.org/api/units/1729203/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.967653Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Character Devices" ], "previous_source": "", "target": [ "" ], "id_hash": -4964220595905380725, "content_hash": -4964220595905380725, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:141", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1136088/?format=api", "priority": 100, "id": 1729204, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=3b1b8bab6a61be8b", "url": "https://translate-dev.freebsd.org/api/units/1729204/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.968291Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "A character device driver is one that transfers data directly to and from a user process. This is the most common type of device driver and there are plenty of simple examples in the source tree." ], "previous_source": "", "target": [ "" ], "id_hash": 1710985152252052202, "content_hash": 1710985152252052202, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:144", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/1136090/?format=api", "priority": 100, "id": 1729205, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=97bea3ee47f382ea", "url": "https://translate-dev.freebsd.org/api/units/1729205/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.968915Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "This simple example pseudo-device remembers whatever values are written to it and can then echo them back when read." ], "previous_source": "", "target": [ "" ], "id_hash": 7064233888484736796, "content_hash": 7064233888484736796, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:146", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1136092/?format=api", "priority": 100, "id": 1729206, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=e209334b2d68bf1c", "url": "https://translate-dev.freebsd.org/api/units/1729206/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.969578Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "Example of a Sample Echo Pseudo-Device Driver for FreeBSD 10.X - 12.X" ], "previous_source": "", "target": [ "" ], "id_hash": 9144301548006342219, "content_hash": 9144301548006342219, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:147", "context": "", "note": "type: Block title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1136094/?format=api", "priority": 100, "id": 1729207, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=fee715cf2ff8fe4b", "url": "https://translate-dev.freebsd.org/api/units/1729207/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.970219Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/*\n * Simple Echo pseudo-device KLD\n *\n * Murray Stokely\n * Søren (Xride) Straarup\n * Eitan Adler\n */\n" ], "previous_source": "", "target": [ "" ], "id_hash": 9217523059148232746, "content_hash": 9217523059148232746, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:159", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1136096/?format=api", "priority": 100, "id": 1729208, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=ffeb3862c180982a", "url": "https://translate-dev.freebsd.org/api/units/1729208/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.970887Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "#include <sys/types.h>\n#include <sys/systm.h> /* uprintf */\n#include <sys/param.h> /* defines used in kernel.h */\n#include <sys/module.h>\n#include <sys/kernel.h> /* types used in module initialization */\n#include <sys/conf.h> /* cdevsw struct */\n#include <sys/uio.h> /* uio struct */\n#include <sys/malloc.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 8560267081403260529, "content_hash": 8560267081403260529, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:168", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/1383878/?format=api", "priority": 100, "id": 1729209, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=f6cc2d8e6982de71", "url": "https://translate-dev.freebsd.org/api/units/1729209/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.971563Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "#define BUFFERSIZE 255\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6496193265239849892, "content_hash": -6496193265239849892, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:170", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1136100/?format=api", "priority": 100, "id": 1729210, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=25d8e2a4c118045c", "url": "https://translate-dev.freebsd.org/api/units/1729210/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.972211Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/* Function prototypes */\nstatic d_open_t echo_open;\nstatic d_close_t echo_close;\nstatic d_read_t echo_read;\nstatic d_write_t echo_write;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2554704346690482877, "content_hash": -2554704346690482877, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:176", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1136102/?format=api", "priority": 100, "id": 1729211, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=5c8bddee9d5e0d43", "url": "https://translate-dev.freebsd.org/api/units/1729211/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.972848Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/* Character device entry points */\nstatic struct cdevsw echo_cdevsw = {\n\t.d_version = D_VERSION,\n\t.d_open = echo_open,\n\t.d_close = echo_close,\n\t.d_read = echo_read,\n\t.d_write = echo_write,\n\t.d_name = \"echo\",\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2577642540047567972, "content_hash": -2577642540047567972, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:186", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/1136104/?format=api", "priority": 100, "id": 1729212, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=5c3a5fc44a87739c", "url": "https://translate-dev.freebsd.org/api/units/1729212/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.973543Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "struct s_echo {\n\tchar msg[BUFFERSIZE + 1];\n\tint len;\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1441649793368571868, "content_hash": 1441649793368571868, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:191", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1136106/?format=api", "priority": 100, "id": 1729213, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=9401c4d9503fbfdc", "url": "https://translate-dev.freebsd.org/api/units/1729213/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.974202Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/* vars */\nstatic struct cdev *echo_dev;\nstatic struct s_echo *echomsg;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3726371867551551728, "content_hash": -3726371867551551728, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:195", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1136108/?format=api", "priority": 100, "id": 1729214, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=4c4944879594af10", "url": "https://translate-dev.freebsd.org/api/units/1729214/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.974866Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "MALLOC_DECLARE(M_ECHOBUF);\nMALLOC_DEFINE(M_ECHOBUF, \"echobuffer\", \"buffer for echo module\");\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2642381109602615962, "content_hash": -2642381109602615962, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:198", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1136110/?format=api", "priority": 100, "id": 1729215, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=5b54606178eefd66", "url": "https://translate-dev.freebsd.org/api/units/1729215/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.975511Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/*\n * This function is called by the kld[un]load(2) system calls to\n * determine what actions to take when a module is loaded or unloaded.\n */\nstatic int\necho_loader(struct module *m __unused, int what, void *arg __unused)\n{\n\tint error = 0;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -1622720009541924125, "content_hash": -1622720009541924125, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:207", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 42, "source_unit": "https://translate-dev.freebsd.org/api/units/1136112/?format=api", "priority": 100, "id": 1729216, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=697af0bfb555cae3", "url": "https://translate-dev.freebsd.org/api/units/1729216/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.976205Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\tswitch (what) {\n\tcase MOD_LOAD: /* kldload */\n\t\terror = make_dev_p(MAKEDEV_CHECKNAME | MAKEDEV_WAITOK,\n\t\t &echo_dev,\n\t\t &echo_cdevsw,\n\t\t 0,\n\t\t UID_ROOT,\n\t\t GID_WHEEL,\n\t\t 0600,\n\t\t \"echo\");\n\t\tif (error != 0)\n\t\t\tbreak;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 1122053842250901903, "content_hash": 1122053842250901903, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:220", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/1136114/?format=api", "priority": 100, "id": 1729217, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=8f9256064e3a298f", "url": "https://translate-dev.freebsd.org/api/units/1729217/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.976953Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\t\techomsg = malloc(sizeof(*echomsg), M_ECHOBUF, M_WAITOK |\n\t\t M_ZERO);\n\t\tprintf(\"Echo device loaded.\\n\");\n\t\tbreak;\n\tcase MOD_UNLOAD:\n\t\tdestroy_dev(echo_dev);\n\t\tfree(echomsg, M_ECHOBUF);\n\t\tprintf(\"Echo device unloaded.\\n\");\n\t\tbreak;\n\tdefault:\n\t\terror = EOPNOTSUPP;\n\t\tbreak;\n\t}\n\treturn (error);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4708694033005223695, "content_hash": 4708694033005223695, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:236", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/1136116/?format=api", "priority": 100, "id": 1729218, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=c158a44679471f0f", "url": "https://translate-dev.freebsd.org/api/units/1729218/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.977694Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "static int\necho_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused,\n struct thread *td __unused)\n{\n\tint error = 0;\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2578992003593899756, "content_hash": 2578992003593899756, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:242", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1136118/?format=api", "priority": 100, "id": 1729219, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=a3ca6b902cc98eec", "url": "https://translate-dev.freebsd.org/api/units/1729219/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.978367Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\tuprintf(\"Opened device \\\"echo\\\" successfully.\\n\");\n\treturn (error);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -6907858020286882886, "content_hash": -6907858020286882886, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:246", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1136120/?format=api", "priority": 100, "id": 1729220, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=20225bbaddf79bba", "url": "https://translate-dev.freebsd.org/api/units/1729220/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.979044Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "static int\necho_close(struct cdev *dev __unused, int fflag __unused, int devtype __unused,\n struct thread *td __unused)\n{\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5115587816924568140, "content_hash": -5115587816924568140, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:251", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/1136122/?format=api", "priority": 100, "id": 1729221, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=3901c7fbeae525b4", "url": "https://translate-dev.freebsd.org/api/units/1729221/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.979691Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\tuprintf(\"Closing device \\\"echo\\\".\\n\");\n\treturn (0);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 4453322758919858179, "content_hash": 4453322758919858179, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:255", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1136124/?format=api", "priority": 100, "id": 1729222, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=bdcd61745b94a803", "url": "https://translate-dev.freebsd.org/api/units/1729222/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.980357Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "/*\n * The read function just takes the buf that was saved via\n * echo_write() and returns it to userland for accessing.\n * uio(9)\n */\nstatic int\necho_read(struct cdev *dev __unused, struct uio *uio, int ioflag __unused)\n{\n\tsize_t amt;\n\tint error;\n" ], "previous_source": "", "target": [ "" ], "id_hash": -872242036626685392, "content_hash": -872242036626685392, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:266", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 42, "source_unit": "https://translate-dev.freebsd.org/api/units/1136126/?format=api", "priority": 100, "id": 1729223, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=73e52c7d30b40230", "url": "https://translate-dev.freebsd.org/api/units/1729223/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.981026Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\t/*\n\t * How big is this read operation? Either as big as the user wants,\n\t * or as big as the remaining data. Note that the 'len' does not\n\t * include the trailing null character.\n\t */\n\tamt = MIN(uio->uio_resid, uio->uio_offset >= echomsg->len + 1 ? 0 :\n\t echomsg->len + 1 - uio->uio_offset);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2709165537379200475, "content_hash": 2709165537379200475, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:274", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 48, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 52, "source_unit": "https://translate-dev.freebsd.org/api/units/1136128/?format=api", "priority": 100, "id": 1729224, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=a598e3b3d537addb", "url": "https://translate-dev.freebsd.org/api/units/1729224/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.981712Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\tif ((error = uiomove(echomsg->msg, amt, uio)) != 0)\n\t\tuprintf(\"uiomove failed!\\n\");\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8185981403895168414, "content_hash": -8185981403895168414, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:277", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 49, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1136130/?format=api", "priority": 100, "id": 1729225, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=0e658d48cae00262", "url": "https://translate-dev.freebsd.org/api/units/1729225/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.982387Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookdriverbasics_index/fr/?format=api", "source": [ "\treturn (error);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": 3760637992045188828, "content_hash": 3760637992045188828, "location": "documentation/content/en/books/arch-handbook/driverbasics/_index.adoc:280", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1136132/?format=api", "priority": 100, "id": 1729226, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookdriverbasics_index/fr/?checksum=b43078543cb116dc", "url": "https://translate-dev.freebsd.org/api/units/1729226/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-01-22T17:52:06.983049Z" } ] }