Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/units/?format=api
https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Chapter 5. The SYSINIT Framework" ], "previous_source": "", "target": [ "" ], "id_hash": -1726583869813549262, "content_hash": -1726583869813549262, "location": "documentation/content/en/books/arch-handbook/sysinit/_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": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1145058/?format=api", "priority": 100, "id": 1145330, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=6809f11e44d81732", "url": "https://translate-dev.freebsd.org/api/units/1145330/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.540517Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "The SYSINIT Framework" ], "previous_source": "", "target": [ ">SYSINIT框架" ], "id_hash": -6017390746432454956, "content_hash": -6017390746432454956, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:1, documentation/content/en/books/arch-handbook/sysinit/_index.adoc:13", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1145060/?format=api", "priority": 100, "id": 1145331, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=2c7deeff642bbed4", "url": "https://translate-dev.freebsd.org/api/units/1145331/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.582224Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "SYSINIT is the framework for a generic call sort and dispatch mechanism. FreeBSD currently uses it for the dynamic initialization of the kernel. SYSINIT allows FreeBSD's kernel subsystems to be reordered, and added, removed, and replaced at kernel link time when the kernel or one of its modules is loaded without having to edit a statically ordered initialization routing and recompile the kernel. This system also allows kernel modules, currently called _KLD's_, to be separately compiled, linked, and initialized at boot time and loaded even later while the system is already running. This is accomplished using the \"kernel linker\" and \"linker sets\"." ], "previous_source": "", "target": [ "SYSINIT是一个通用的调用排序与分别执行机制的框架。FreeBSD目前使用它来进行内核的动态初始化。SYSINIT使得FreeBSD的内核各子系统可以在内核或模块动态加载链接时被重整、添加、删除、替换,这样,内核和模块加载时就不必去修改一个静态的有序初始化安排表甚至重新编译内核。这个体系也使得内核模块(现在称为<firstterm>KLD</firstterm>可以与内核不同时编译、链接、在引导系统时加载,甚至在系统运行时加载。这些操作是通过<quote>内核链接器</quote>(kernel linker)和<quote>链接器集合</quote>(linker set)完成的。" ], "id_hash": -7061876672809213277, "content_hash": -7061876672809213277, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:51", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 102, "source_unit": "https://translate-dev.freebsd.org/api/units/1145062/?format=api", "priority": 100, "id": 1145332, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=1dff2c94dd96e2a3", "url": "https://translate-dev.freebsd.org/api/units/1145332/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.588570Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Terminology" ], "previous_source": "", "target": [ "术语" ], "id_hash": -2265359017240566842, "content_hash": -2265359017240566842, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:53", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145064/?format=api", "priority": 100, "id": 1145333, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=608fd3f9e8a5e3c6", "url": "https://translate-dev.freebsd.org/api/units/1145333/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.595752Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Linker Set" ], "previous_source": "", "target": [ "链接器集合(Linker Set)" ], "id_hash": 5198008931098616683, "content_hash": 5198008931098616683, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:55", "context": "", "note": "type: Labeled list", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1145066/?format=api", "priority": 100, "id": 1145334, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=c82309952570e36b", "url": "https://translate-dev.freebsd.org/api/units/1145334/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.603204Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "A linker technique in which the linker gathers statically declared data throughout a program's source files into a single contiguously addressable unit of data." ], "previous_source": "", "target": [ "一种链接方法。这种方法将整个程序源文件中静态申明的数据收集到一个可邻近寻址的数据单元中。" ], "id_hash": -1164990064929601801, "content_hash": -1164990064929601801, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:57", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1145068/?format=api", "priority": 100, "id": 1145335, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=6fd51fb5550306f7", "url": "https://translate-dev.freebsd.org/api/units/1145335/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.608914Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "SYSINIT Operation" ], "previous_source": "", "target": [ "SYSINIT操作" ], "id_hash": 2331548366561607862, "content_hash": 2331548366561607862, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:59", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1145070/?format=api", "priority": 100, "id": 1145336, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=a05b52e2e58c00b6", "url": "https://translate-dev.freebsd.org/api/units/1145336/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.614502Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "SYSINIT relies on the ability of the linker to take static data declared at multiple locations throughout a program's source and group it together as a single contiguous chunk of data. This linker technique is called a \"linker set\". SYSINIT uses two linker sets to maintain two data sets containing each consumer's call order, function, and a pointer to the data to pass to that function." ], "previous_source": "", "target": [ "SYSINIT要依靠链接器获取遍布整个程序源代码多处申明的静态数据并把它们组成一个彼此相邻的数据块。这种链接方法被称为<quote>链接器集合</quote>(linker set)。SYSINIT使用两个链接器集合以维护两个数据集合,包含每个数据条目的调用顺序、函数、一个会被提交给该函数的数据指针。" ], "id_hash": -1389432168112418076, "content_hash": -1389432168112418076, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:62", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/1145072/?format=api", "priority": 100, "id": 1145337, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=6cb7becdfc2892e4", "url": "https://translate-dev.freebsd.org/api/units/1145337/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.620562Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "SYSINIT uses two priorities when ordering the functions for execution. The first priority is a subsystem ID giving an overall order for SYSINIT's dispatch of functions. Current predeclared ID's are in [.filename]#<sys/kernel.h># in the enum list `sysinit_sub_id`. The second priority used is an element order within the subsystem. Current predeclared subsystem element orders are in [.filename]#<sys/kernel.h># in the enum list `sysinit_elem_order`." ], "previous_source": "", "target": [ "SYSINIT按照两类优先级标识对函数排序以便执行。第一类优先级的标识是子系统的标识,给出SYSINIT分别执行子系统的函数的全局顺序,定义在<filename><sys/kernel.h></filename>中的枚举<literal>sysinit_sub_id</literal>内。第二类优先级标识在子系统中的元素的顺序,定义在<filename><sys/kernel.h></filename>中的枚举<literal>sysinit_elem_order</literal>内。" ], "id_hash": -737499926031043961, "content_hash": -737499926031043961, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:64", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 61, "source_unit": "https://translate-dev.freebsd.org/api/units/1145074/?format=api", "priority": 100, "id": 1145338, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=75c3dfb9870af287", "url": "https://translate-dev.freebsd.org/api/units/1145338/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.677352Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "There are currently two uses for SYSINIT. Function dispatch at system startup and kernel module loads, and function dispatch at system shutdown and kernel module unload. Kernel subsystems often use system startup SYSINIT's to initialize data structures, for example the process scheduling subsystem uses a SYSINIT to initialize the run queue data structure. Device drivers should avoid using `SYSINIT()` directly. Instead drivers for real devices that are part of a bus structure should use `DRIVER_MODULE()` to provide a function that detects the device and, if it is present, initializes the device. It will do a few things specific to devices and then call `SYSINIT()` itself. For pseudo-devices, which are not part of a bus structure, use `DEV_MODULE()`." ], "previous_source": "", "target": [ "有两种时刻需要使用SYSINIT:系统启动或内核模块加载时,系统析构或内核模块卸载时。内核子系统通常在系统启动时使用SYSINIT的定义项以初始化数据结构。例如,进程调度子系统使用一个SYSINIT定义项来初始化运行队列数据结构。设备驱动程序应避免直接使用<literal>SYSINIT()</literal>,对于总线结构上的物理真实设备应使用<literal>DRIVER_MODULE()</literal>调用的函数先侦测设备的存在,如果存在,再进行设备的初始化。这一系统过程中,会做一些专门针对设备的事情,然后调用<literal>SYSINIT()</literal>本身。对于非总线结构一部分的虚设备,应改用<literal>DEV_MODULE()</literal>。" ], "id_hash": -4740150286883389251, "content_hash": -4740150286883389251, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:66", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 117, "source_unit": "https://translate-dev.freebsd.org/api/units/1145076/?format=api", "priority": 100, "id": 1145339, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=3e379a6db05980bd", "url": "https://translate-dev.freebsd.org/api/units/1145339/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.686098Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Using SYSINIT" ], "previous_source": "", "target": [ "使用SYSINIT" ], "id_hash": 3888455891306097338, "content_hash": 3888455891306097338, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:68", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1145078/?format=api", "priority": 100, "id": 1145340, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=b5f69207fe132aba", "url": "https://translate-dev.freebsd.org/api/units/1145340/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.693563Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Interface" ], "previous_source": "", "target": [ "接口" ], "id_hash": -3517470175911236304, "content_hash": -3517470175911236304, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:70", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145080/?format=api", "priority": 100, "id": 1145341, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=4f2f6f82e8c7ad30", "url": "https://translate-dev.freebsd.org/api/units/1145341/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.700806Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Headers" ], "previous_source": "", "target": [ "头文件" ], "id_hash": 1850317099559884940, "content_hash": 1850317099559884940, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:72", "context": "", "note": "type: Title ====", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145082/?format=api", "priority": 100, "id": 1145342, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=99ada5994119188c", "url": "https://translate-dev.freebsd.org/api/units/1145342/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.707687Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "<sys/kernel.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5370890069694069091, "content_hash": -5370890069694069091, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:77", "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": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145084/?format=api", "priority": 100, "id": 1145343, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=3576c3f01436469d", "url": "https://translate-dev.freebsd.org/api/units/1145343/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.783130Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Macros" ], "previous_source": "", "target": [ "宏" ], "id_hash": 4242434847767527707, "content_hash": 4242434847767527707, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:79", "context": "", "note": "type: Title ====", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145086/?format=api", "priority": 100, "id": 1145344, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=bae0280443ec011b", "url": "https://translate-dev.freebsd.org/api/units/1145344/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.790063Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "SYSINIT(uniquifier, subsystem, order, func, ident)\nSYSUNINIT(uniquifier, subsystem, order, func, ident)\n" ], "previous_source": "", "target": [ "SYSINIT(uniquifier, subsystem, order, func, ident)\nSYSUNINIT(uniquifier, subsystem, order, func, ident)\n" ], "id_hash": 652599126077789951, "content_hash": 652599126077789951, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:85", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1145088/?format=api", "priority": 100, "id": 1145345, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=890e7f729298d6ff", "url": "https://translate-dev.freebsd.org/api/units/1145345/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.796954Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Startup" ], "previous_source": "", "target": [ "启动" ], "id_hash": 2081267803181613635, "content_hash": 2081267803181613635, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:87", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145090/?format=api", "priority": 100, "id": 1145346, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=9ce2260a3b190243", "url": "https://translate-dev.freebsd.org/api/units/1145346/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.804138Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "The `SYSINIT()` macro creates the necessary SYSINIT data in SYSINIT's startup data set for SYSINIT to sort and dispatch a function at system startup and module load. `SYSINIT()` takes a uniquifier that SYSINIT uses to identify the particular function dispatch data, the subsystem order, the subsystem element order, the function to call, and the data to pass the function. All functions must take a constant pointer argument." ], "previous_source": "", "target": [ ">宏<literal>SYSINIT()</literal>在SYSINIT启动数据集合中建立一个SYSINIT数据项,以便SYSINIT在系统启动或模块加载时排序并执行其中的函数。<literal>SYSINIT()</literal>有一个参数uniquifier,SYSINIT用它来标识数据项,随后是子系统顺序号、子系统元素顺序号、待调用函数、传递给函数的数据。所有的函数必须有一个恒量指针参数。" ], "id_hash": -7614434637515932733, "content_hash": -7614434637515932733, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:90", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 67, "source_unit": "https://translate-dev.freebsd.org/api/units/1145092/?format=api", "priority": 100, "id": 1145347, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=1654180a496ebbc3", "url": "https://translate-dev.freebsd.org/api/units/1145347/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.876991Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Example of a `SYSINIT()`" ], "previous_source": "", "target": [ "" ], "id_hash": -1408499969607493872, "content_hash": -1408499969607493872, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:91", "context": "", "note": "type: Block title", "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": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1145094/?format=api", "priority": 100, "id": 1145348, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=6c7400bd7d659710", "url": "https://translate-dev.freebsd.org/api/units/1145348/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.884666Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "#include <sys/kernel.h>\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2322836394061693240, "content_hash": 2322836394061693240, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:97, documentation/content/en/books/arch-handbook/sysinit/_index.adoc:147", "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": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1145096/?format=api", "priority": 100, "id": 1145349, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=a03c5f64bb658138", "url": "https://translate-dev.freebsd.org/api/units/1145349/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.893731Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "void foo_null(void *unused)\n{\n foo_doo();\n}\nSYSINIT(foo, SI_SUB_FOO, SI_ORDER_FOO, foo_null, NULL);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3498796056056742336, "content_hash": -3498796056056742336, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:103", "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": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1145098/?format=api", "priority": 100, "id": 1145350, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=4f71c78641333e40", "url": "https://translate-dev.freebsd.org/api/units/1145350/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.900865Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "struct foo foo_voodoo = {\n FOO_VOODOO;\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -368119070405816123, "content_hash": -368119070405816123, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:107", "context": "", "note": "type: delimited block . 4", "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": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1145100/?format=api", "priority": 100, "id": 1145351, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=7ae42da7e56a10c5", "url": "https://translate-dev.freebsd.org/api/units/1145351/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.907281Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "void foo_arg(void *vdata)\n{\n struct foo *foo = (struct foo *)vdata;\n foo_data(foo);\n}\nSYSINIT(bar, SI_SUB_FOO, SI_ORDER_FOO, foo_arg, &foo_voodoo);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 661409921040572415, "content_hash": 661409921040572415, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:114", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1145102/?format=api", "priority": 100, "id": 1145352, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=892dccd1a28adfff", "url": "https://translate-dev.freebsd.org/api/units/1145352/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.980633Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Note that `SI_SUB_FOO` and `SI_ORDER_FOO` need to be in the `sysinit_sub_id` and `sysinit_elem_order` enum's as mentioned above. Either use existing ones or add your own to the enum's. You can also use math for fine-tuning the order a SYSINIT will run in. This example shows a SYSINIT that needs to be run just barely before the SYSINIT's that handle tuning kernel parameters." ], "previous_source": "", "target": [ "注意,<literal>SI_SUB_FOO</literal>和<literal>SI_ORDER_FOO</literal>应当分别在上面提到的枚举<literal>sysinit_sub_id</literal>和<literal>sysinit_elem_order</literal>之中。既可以使用已有的枚举项,也可以将自己的枚举项添加到这两个枚举的定义之中。你可以使用数学表达式微调SYSINIT的执行顺序。以下的例子示例了一个需要刚好要在内核参数调整的SYSINIT之前执行的SYSINIT。" ], "id_hash": -5077123303698861506, "content_hash": -5077123303698861506, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:118", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 10, "fuzzy": true, "translated": false, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 62, "source_unit": "https://translate-dev.freebsd.org/api/units/1145104/?format=api", "priority": 100, "id": 1145353, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=398a6f414a2bf23e", "url": "https://translate-dev.freebsd.org/api/units/1145353/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.987899Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Example of Adjusting `SYSINIT()` Order" ], "previous_source": "", "target": [ "" ], "id_hash": 8363845420854102793, "content_hash": 8363845420854102793, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:119", "context": "", "note": "type: Block title", "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": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1145106/?format=api", "priority": 100, "id": 1145354, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=f4125918c2494b09", "url": "https://translate-dev.freebsd.org/api/units/1145354/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:27.995753Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "static void\nmptable_register(void *dummy __unused)\n{\n" ], "previous_source": "", "target": [ "" ], "id_hash": -9064643213318415075, "content_hash": -9064643213318415075, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:127", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1145108/?format=api", "priority": 100, "id": 1145355, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=0233eb0626801d1d", "url": "https://translate-dev.freebsd.org/api/units/1145355/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.002797Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "\tapic_register_enumerator(&mptable_enumerator);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -2163294156843181486, "content_hash": -2163294156843181486, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:130", "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": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1145110/?format=api", "priority": 100, "id": 1145356, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=61fa6f6d0caf1a52", "url": "https://translate-dev.freebsd.org/api/units/1145356/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.077642Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "SYSINIT(mptable_register, SI_SUB_TUNABLES - 1, SI_ORDER_FIRST,\n mptable_register, NULL);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8455292885377913848, "content_hash": -8455292885377913848, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:133", "context": "", "note": "type: delimited block . 4", "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": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1145112/?format=api", "priority": 100, "id": 1145357, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=0aa8c3eb37296c08", "url": "https://translate-dev.freebsd.org/api/units/1145357/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.088453Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Shutdown" ], "previous_source": "", "target": [ "关闭" ], "id_hash": 2558113811373597904, "content_hash": 2558113811373597904, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:137", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1145114/?format=api", "priority": 100, "id": 1145358, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=a3803ef53df1a4d0", "url": "https://translate-dev.freebsd.org/api/units/1145358/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.095696Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "The `SYSUNINIT()` macro behaves similarly to the `SYSINIT()` macro except that it adds the SYSINIT data to SYSINIT's shutdown data set." ], "previous_source": "", "target": [ "" ], "id_hash": 3217691570432593169, "content_hash": 3217691570432593169, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:140", "context": "", "note": "type: delimited block = 4", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/1145116/?format=api", "priority": 100, "id": 1145359, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=aca7896f6c674d11", "url": "https://translate-dev.freebsd.org/api/units/1145359/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.103194Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "Example of a `SYSUNINIT()`" ], "previous_source": "", "target": [ "" ], "id_hash": 7255536962389514516, "content_hash": 7255536962389514516, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:141", "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": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1145118/?format=api", "priority": 100, "id": 1145360, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=e4b0d86d01f19914", "url": "https://translate-dev.freebsd.org/api/units/1145360/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.111070Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "void foo_cleanup(void *unused)\n{\n foo_kill();\n}\nSYSUNINIT(foobar, SI_SUB_FOO, SI_ORDER_FOO, foo_cleanup, NULL);\n" ], "previous_source": "", "target": [ "" ], "id_hash": -5749069682445114524, "content_hash": -5749069682445114524, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:153", "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": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1145120/?format=api", "priority": 100, "id": 1145361, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=303733956ce42364", "url": "https://translate-dev.freebsd.org/api/units/1145361/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.177109Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "struct foo_stack foo_stack = {\n FOO_STACK_VOODOO;\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3103948716463387697, "content_hash": -3103948716463387697, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:157", "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": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1145122/?format=api", "priority": 100, "id": 1145362, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=54ec8f167a2b8bcf", "url": "https://translate-dev.freebsd.org/api/units/1145362/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.186242Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksysinit_index/zh_CN/?format=api", "source": [ "void foo_flush(void *vdata)\n{\n}\nSYSUNINIT(barfoo, SI_SUB_FOO, SI_ORDER_FOO, foo_flush, &foo_stack);\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2693393083158584117, "content_hash": 2693393083158584117, "location": "documentation/content/en/books/arch-handbook/sysinit/_index.adoc:162", "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": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1145124/?format=api", "priority": 100, "id": 1145363, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksysinit_index/zh_CN/?checksum=a560dabd2a295b35", "url": "https://translate-dev.freebsd.org/api/units/1145363/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:20:28.193069Z" } ] }{ "count": 34, "next": null, "previous": null, "results": [ { "translation": "