Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksarch-handbooksmp_index/en/units/?format=api&page=2
https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/units/?format=api&page=3", "previous": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/units/?format=api", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Credentials" ], "previous_source": "", "target": [ "Credentials" ], "id_hash": 181406758642361756, "content_hash": 181406758642361756, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:155", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 52, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134264/?format=api", "priority": 100, "id": 1134264, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=82847c7c60bba59c", "url": "https://translate-dev.freebsd.org/api/units/1134264/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.410372Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "`struct ucred` is the kernel's internal credential structure, and is generally used as the basis for process-driven access control within the kernel. BSD-derived systems use a \"copy-on-write\" model for credential data: multiple references may exist for a credential structure, and when a change needs to be made, the structure is duplicated, modified, and then the reference replaced. Due to wide-spread caching of the credential to implement access control on open, this results in substantial memory savings. With a move to fine-grained SMP, this model also saves substantially on locking operations by requiring that modification only occur on an unshared credential, avoiding the need for explicit synchronization when consuming a known-shared credential." ], "previous_source": "", "target": [ "`struct ucred` is the kernel's internal credential structure, and is generally used as the basis for process-driven access control within the kernel. BSD-derived systems use a \"copy-on-write\" model for credential data: multiple references may exist for a credential structure, and when a change needs to be made, the structure is duplicated, modified, and then the reference replaced. Due to wide-spread caching of the credential to implement access control on open, this results in substantial memory savings. With a move to fine-grained SMP, this model also saves substantially on locking operations by requiring that modification only occur on an unshared credential, avoiding the need for explicit synchronization when consuming a known-shared credential." ], "id_hash": -8862976827597105351, "content_hash": -8862976827597105351, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:158", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 53, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 111, "source_unit": "https://translate-dev.freebsd.org/api/units/1134266/?format=api", "priority": 100, "id": 1134266, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=050061888a8e5739", "url": "https://translate-dev.freebsd.org/api/units/1134266/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.428836Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Credential structures with a single reference are considered mutable; shared credential structures must not be modified or a race condition is risked. A mutex, `cr_mtxp` protects the reference count of `struct ucred` so as to maintain consistency. Any use of the structure requires a valid reference for the duration of the use, or the structure may be released out from under the illegitimate consumer." ], "previous_source": "", "target": [ "Credential structures with a single reference are considered mutable; shared credential structures must not be modified or a race condition is risked. A mutex, `cr_mtxp` protects the reference count of `struct ucred` so as to maintain consistency. Any use of the structure requires a valid reference for the duration of the use, or the structure may be released out from under the illegitimate consumer." ], "id_hash": 4782467227970370357, "content_hash": 4782467227970370357, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:160", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 54, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 64, "source_unit": "https://translate-dev.freebsd.org/api/units/1134268/?format=api", "priority": 100, "id": 1134268, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=c25ebc9af11efb35", "url": "https://translate-dev.freebsd.org/api/units/1134268/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.489307Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The `struct ucred` mutex is a leaf mutex and is implemented via a mutex pool for performance reasons." ], "previous_source": "", "target": [ "The `struct ucred` mutex is a leaf mutex and is implemented via a mutex pool for performance reasons." ], "id_hash": 70324799552655513, "content_hash": 70324799552655513, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:162", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 55, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1134270/?format=api", "priority": 100, "id": 1134270, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=80f9d808583c9099", "url": "https://translate-dev.freebsd.org/api/units/1134270/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.507637Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Usually, credentials are used in a read-only manner for access control decisions, and in this case `td_ucred` is generally preferred because it requires no locking. When a process' credential is updated the `proc` lock must be held across the check and update operations thus avoid races. The process credential `p_ucred` must be used for check and update operations to prevent time-of-check, time-of-use races." ], "previous_source": "", "target": [ "Usually, credentials are used in a read-only manner for access control decisions, and in this case `td_ucred` is generally preferred because it requires no locking. When a process' credential is updated the `proc` lock must be held across the check and update operations thus avoid races. The process credential `p_ucred` must be used for check and update operations to prevent time-of-check, time-of-use races." ], "id_hash": -733503318545727327, "content_hash": -733503318545727327, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:164", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 56, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 63, "source_unit": "https://translate-dev.freebsd.org/api/units/1134272/?format=api", "priority": 100, "id": 1134272, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=75d2129e388300a1", "url": "https://translate-dev.freebsd.org/api/units/1134272/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.526133Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "If system call invocations will perform access control after an update to the process credential, the value of `td_ucred` must also be refreshed to the current process value. This will prevent use of a stale credential following a change. The kernel automatically refreshes the `td_ucred` pointer in the thread structure from the process `p_ucred` whenever a process enters the kernel, permitting use of a fresh credential for kernel access control." ], "previous_source": "", "target": [ "If system call invocations will perform access control after an update to the process credential, the value of `td_ucred` must also be refreshed to the current process value. This will prevent use of a stale credential following a change. The kernel automatically refreshes the `td_ucred` pointer in the thread structure from the process `p_ucred` whenever a process enters the kernel, permitting use of a fresh credential for kernel access control." ], "id_hash": 3378990868534647717, "content_hash": 3378990868534647717, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:166", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 57, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 70, "source_unit": "https://translate-dev.freebsd.org/api/units/1134274/?format=api", "priority": 100, "id": 1134274, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=aee4964ad24bdba5", "url": "https://translate-dev.freebsd.org/api/units/1134274/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.583116Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "File Descriptors and File Descriptor Tables" ], "previous_source": "", "target": [ "File Descriptors and File Descriptor Tables" ], "id_hash": 3609989085346982098, "content_hash": 3609989085346982098, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:167", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 58, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1134276/?format=api", "priority": 100, "id": 1134276, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=b21941f25324e8d2", "url": "https://translate-dev.freebsd.org/api/units/1134276/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.601683Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Details to follow." ], "previous_source": "", "target": [ "Details to follow." ], "id_hash": -9099776473031393328, "content_hash": -9099776473031393328, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:170", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 59, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1134278/?format=api", "priority": 100, "id": 1134278, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=01b71982ad81bfd0", "url": "https://translate-dev.freebsd.org/api/units/1134278/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.618125Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Jail Structures" ], "previous_source": "", "target": [ "Jail Structures" ], "id_hash": 5167628290540269625, "content_hash": 5167628290540269625, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:171", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 60, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1134280/?format=api", "priority": 100, "id": 1134280, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=c7b71a8d0ce97039", "url": "https://translate-dev.freebsd.org/api/units/1134280/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.634167Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "`struct prison` stores administrative details pertinent to the maintenance of jails created using the man:jail[2] API. This includes the per-jail hostname, IP address, and related settings. This structure is reference-counted since pointers to instances of the structure are shared by many credential structures. A single mutex, `pr_mtx` protects read and write access to the reference count and all mutable variables inside the struct jail. Some variables are set only when the jail is created, and a valid reference to the `struct prison` is sufficient to read these values. The precise locking of each entry is documented via comments in [.filename]#sys/jail.h#." ], "previous_source": "", "target": [ "`struct prison` stores administrative details pertinent to the maintenance of jails created using the man:jail[2] API. This includes the per-jail hostname, IP address, and related settings. This structure is reference-counted since pointers to instances of the structure are shared by many credential structures. A single mutex, `pr_mtx` protects read and write access to the reference count and all mutable variables inside the struct jail. Some variables are set only when the jail is created, and a valid reference to the `struct prison` is sufficient to read these values. The precise locking of each entry is documented via comments in [.filename]#sys/jail.h#." ], "id_hash": -6404492257615091161, "content_hash": -6404492257615091161, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:174", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 61, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 100, "source_unit": "https://translate-dev.freebsd.org/api/units/1134282/?format=api", "priority": 100, "id": 1134282, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=271eac39621cea27", "url": "https://translate-dev.freebsd.org/api/units/1134282/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.683222Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "MAC Framework" ], "previous_source": "", "target": [ "MAC Framework" ], "id_hash": 8109534192808495021, "content_hash": 8109534192808495021, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:175", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 62, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1134284/?format=api", "priority": 100, "id": 1134284, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=f08ada61d83c07ad", "url": "https://translate-dev.freebsd.org/api/units/1134284/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.706607Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The TrustedBSD MAC Framework maintains data in a variety of kernel objects, in the form of `struct label`. In general, labels in kernel objects are protected by the same lock as the remainder of the kernel object. For example, the `v_label` label in `struct vnode` is protected by the vnode lock on the vnode." ], "previous_source": "", "target": [ "The TrustedBSD MAC Framework maintains data in a variety of kernel objects, in the form of `struct label`. In general, labels in kernel objects are protected by the same lock as the remainder of the kernel object. For example, the `v_label` label in `struct vnode` is protected by the vnode lock on the vnode." ], "id_hash": -1817338020532525225, "content_hash": -1817338020532525225, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:178", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 63, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 54, "source_unit": "https://translate-dev.freebsd.org/api/units/1134286/?format=api", "priority": 100, "id": 1134286, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=66c784b2f158e757", "url": "https://translate-dev.freebsd.org/api/units/1134286/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.724057Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "In addition to labels maintained in standard kernel objects, the MAC Framework also maintains a list of registered and active policies. The policy list is protected by a global mutex (`mac_policy_list_lock`) and a busy count (also protected by the mutex). Since many access control checks may occur in parallel, entry to the framework for a read-only access to the policy list requires holding the mutex while incrementing (and later decrementing) the busy count. The mutex need not be held for the duration of the MAC entry operation--some operations, such as label operations on file system objects--are long-lived. To modify the policy list, such as during policy registration and de-registration, the mutex must be held and the reference count must be zero, to prevent modification of the list while it is in use." ], "previous_source": "", "target": [ "In addition to labels maintained in standard kernel objects, the MAC Framework also maintains a list of registered and active policies. The policy list is protected by a global mutex (`mac_policy_list_lock`) and a busy count (also protected by the mutex). Since many access control checks may occur in parallel, entry to the framework for a read-only access to the policy list requires holding the mutex while incrementing (and later decrementing) the busy count. The mutex need not be held for the duration of the MAC entry operation--some operations, such as label operations on file system objects--are long-lived. To modify the policy list, such as during policy registration and de-registration, the mutex must be held and the reference count must be zero, to prevent modification of the list while it is in use." ], "id_hash": -8104494576613012656, "content_hash": -8104494576613012656, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:180", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 64, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 132, "source_unit": "https://translate-dev.freebsd.org/api/units/1134288/?format=api", "priority": 100, "id": 1134288, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=0f870d1f3ce6cb50", "url": "https://translate-dev.freebsd.org/api/units/1134288/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.776046Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "A condition variable, `mac_policy_list_not_busy`, is available to threads that need to wait for the list to become unbusy, but this condition variable must only be waited on if the caller is holding no other locks, or a lock order violation may be possible. The busy count, in effect, acts as a form of shared/exclusive lock over access to the framework: the difference is that, unlike with an sx lock, consumers waiting for the list to become unbusy may be starved, rather than permitting lock order problems with regards to the busy count and other locks that may be held on entry to (or inside) the MAC Framework." ], "previous_source": "", "target": [ "A condition variable, `mac_policy_list_not_busy`, is available to threads that need to wait for the list to become unbusy, but this condition variable must only be waited on if the caller is holding no other locks, or a lock order violation may be possible. The busy count, in effect, acts as a form of shared/exclusive lock over access to the framework: the difference is that, unlike with an sx lock, consumers waiting for the list to become unbusy may be starved, rather than permitting lock order problems with regards to the busy count and other locks that may be held on entry to (or inside) the MAC Framework." ], "id_hash": 4935148307727889910, "content_hash": 4935148307727889910, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:182", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 65, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 107, "source_unit": "https://translate-dev.freebsd.org/api/units/1134290/?format=api", "priority": 100, "id": 1134290, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=c47d2b3d03fdb5f6", "url": "https://translate-dev.freebsd.org/api/units/1134290/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.797060Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Modules" ], "previous_source": "", "target": [ "Modules" ], "id_hash": 5765707394953988832, "content_hash": 5765707394953988832, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:183", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 66, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134292/?format=api", "priority": 100, "id": 1134292, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=d003e853e3134ae0", "url": "https://translate-dev.freebsd.org/api/units/1134292/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.822664Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "For the module subsystem there exists a single lock that is used to protect the shared data. This lock is a shared/exclusive (SX) lock and has a good chance of needing to be acquired (shared or exclusively), therefore there are a few macros that have been added to make access to the lock more easy. These macros can be located in [.filename]#sys/module.h# and are quite basic in terms of usage. The main structures protected under this lock are the `module_t` structures (when shared) and the global `modulelist_t` structure, modules. One should review the related source code in [.filename]#kern/kern_module.c# to further understand the locking strategy." ], "previous_source": "", "target": [ "For the module subsystem there exists a single lock that is used to protect the shared data. This lock is a shared/exclusive (SX) lock and has a good chance of needing to be acquired (shared or exclusively), therefore there are a few macros that have been added to make access to the lock more easy. These macros can be located in [.filename]#sys/module.h# and are quite basic in terms of usage. The main structures protected under this lock are the `module_t` structures (when shared) and the global `modulelist_t` structure, modules. One should review the related source code in [.filename]#kern/kern_module.c# to further understand the locking strategy." ], "id_hash": -6678660089187176600, "content_hash": -6678660089187176600, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:186", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 67, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 104, "source_unit": "https://translate-dev.freebsd.org/api/units/1134294/?format=api", "priority": 100, "id": 1134294, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=2350a208b06b6f68", "url": "https://translate-dev.freebsd.org/api/units/1134294/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.879792Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Newbus Device Tree" ], "previous_source": "", "target": [ "Newbus Device Tree" ], "id_hash": -1973000544175501977, "content_hash": -1973000544175501977, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:187", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 68, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1134296/?format=api", "priority": 100, "id": 1134296, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=649e7e755ec44d67", "url": "https://translate-dev.freebsd.org/api/units/1134296/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.900136Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The newbus system will have one sx lock. Readers will hold a shared (read) lock (man:sx_slock[9]) and writers will hold an exclusive (write) lock (man:sx_xlock[9]). Internal functions will not do locking at all. Externally visible ones will lock as needed. Those items that do not matter if the race is won or lost will not be locked, since they tend to be read all over the place (e.g., man:device_get_softc[9]). There will be relatively few changes to the newbus data structures, so a single lock should be sufficient and not impose a performance penalty." ], "previous_source": "", "target": [ "The newbus system will have one sx lock. Readers will hold a shared (read) lock (man:sx_slock[9]) and writers will hold an exclusive (write) lock (man:sx_xlock[9]). Internal functions will not do locking at all. Externally visible ones will lock as needed. Those items that do not matter if the race is won or lost will not be locked, since they tend to be read all over the place (e.g., man:device_get_softc[9]). There will be relatively few changes to the newbus data structures, so a single lock should be sufficient and not impose a performance penalty." ], "id_hash": -3822874220961291611, "content_hash": -3822874220961291611, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:190", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 69, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 93, "source_unit": "https://translate-dev.freebsd.org/api/units/1134298/?format=api", "priority": 100, "id": 1134298, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=4af26c26869aa2a5", "url": "https://translate-dev.freebsd.org/api/units/1134298/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.919698Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Pipes" ], "previous_source": "", "target": [ "Pipes" ], "id_hash": 7460971869621122550, "content_hash": 7460971869621122550, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:191", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 70, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134300/?format=api", "priority": 100, "id": 1134300, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=e78ab262aff2f5f6", "url": "https://translate-dev.freebsd.org/api/units/1134300/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.978189Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "..." ], "previous_source": "", "target": [ "..." ], "id_hash": 9041744916878268179, "content_hash": 9041744916878268179, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:194, documentation/content/en/books/arch-handbook/smp/_index.adoc:216", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 71, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134302/?format=api", "priority": 100, "id": 1134302, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=fd7abb18c0391713", "url": "https://translate-dev.freebsd.org/api/units/1134302/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:47.999027Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Processes and Threads" ], "previous_source": "", "target": [ "Processes and Threads" ], "id_hash": -6329115037863804152, "content_hash": -6329115037863804152, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:195", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 72, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1134304/?format=api", "priority": 100, "id": 1134304, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=282a7767f98b8308", "url": "https://translate-dev.freebsd.org/api/units/1134304/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.024533Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "process hierarchy" ], "previous_source": "", "target": [ "process hierarchy" ], "id_hash": 8392076889156678156, "content_hash": 8392076889156678156, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:198", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 73, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1134306/?format=api", "priority": 100, "id": 1134306, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=f476a577b1f2f20c", "url": "https://translate-dev.freebsd.org/api/units/1134306/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.078216Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "proc locks, references" ], "previous_source": "", "target": [ "proc locks, references" ], "id_hash": 8978972421942272818, "content_hash": 8978972421942272818, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:200", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 74, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1134308/?format=api", "priority": 100, "id": 1134308, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=fc9bb7d859e5e332", "url": "https://translate-dev.freebsd.org/api/units/1134308/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.099320Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "thread-specific copies of proc entries to freeze during system calls, including td_ucred" ], "previous_source": "", "target": [ "thread-specific copies of proc entries to freeze during system calls, including td_ucred" ], "id_hash": 6114200729519518473, "content_hash": 6114200729519518473, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:202", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 75, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1134310/?format=api", "priority": 100, "id": 1134310, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=d4da012b4871f309", "url": "https://translate-dev.freebsd.org/api/units/1134310/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.116659Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "inter-process operations" ], "previous_source": "", "target": [ "inter-process operations" ], "id_hash": 8879113458512934865, "content_hash": 8879113458512934865, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:204", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 76, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1134312/?format=api", "priority": 100, "id": 1134312, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=fb38f2a59f0db7d1", "url": "https://translate-dev.freebsd.org/api/units/1134312/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.136243Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "process groups and sessions" ], "previous_source": "", "target": [ "process groups and sessions" ], "id_hash": -7498593416543012143, "content_hash": -7498593416543012143, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:206", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 77, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1134314/?format=api", "priority": 100, "id": 1134314, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=17efa50453defad1", "url": "https://translate-dev.freebsd.org/api/units/1134314/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.184239Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Scheduler" ], "previous_source": "", "target": [ "Scheduler" ], "id_hash": -288499761401529233, "content_hash": -288499761401529233, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:207", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 78, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134316/?format=api", "priority": 100, "id": 1134316, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=7bff0afedbe07c6f", "url": "https://translate-dev.freebsd.org/api/units/1134316/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.206336Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Lots of references to `sched_lock` and notes pointing at specific primitives and related magic elsewhere in the document." ], "previous_source": "", "target": [ "Lots of references to `sched_lock` and notes pointing at specific primitives and related magic elsewhere in the document." ], "id_hash": 3039462004251672715, "content_hash": 3039462004251672715, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:210", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 79, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1134318/?format=api", "priority": 100, "id": 1134318, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=aa2e5696cfb7c08b", "url": "https://translate-dev.freebsd.org/api/units/1134318/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.227820Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Select and Poll" ], "previous_source": "", "target": [ "Select and Poll" ], "id_hash": 8869789562332201898, "content_hash": 8869789562332201898, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:211", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 80, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1134320/?format=api", "priority": 100, "id": 1134320, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=fb17d29cdf4743aa", "url": "https://translate-dev.freebsd.org/api/units/1134320/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.282325Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The `select` and `poll` functions permit threads to block waiting on events on file descriptors--most frequently, whether or not the file descriptors are readable or writable." ], "previous_source": "", "target": [ "The `select` and `poll` functions permit threads to block waiting on events on file descriptors--most frequently, whether or not the file descriptors are readable or writable." ], "id_hash": 6336212116685322900, "content_hash": 6336212116685322900, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:214", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 81, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/1134322/?format=api", "priority": 100, "id": 1134322, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=d7eebf59748dfa94", "url": "https://translate-dev.freebsd.org/api/units/1134322/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.300969Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "SIGIO" ], "previous_source": "", "target": [ "SIGIO" ], "id_hash": -4497599226076596110, "content_hash": -4497599226076596110, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:217", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 82, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134324/?format=api", "priority": 100, "id": 1134324, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=419551554ba1f872", "url": "https://translate-dev.freebsd.org/api/units/1134324/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.322762Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The SIGIO service permits processes to request the delivery of a SIGIO signal to its process group when the read/write status of specified file descriptors changes. At most one process or process group is permitted to register for SIGIO from any given kernel object, and that process or group is referred to as the owner. Each object supporting SIGIO registration contains pointer field that is `NULL` if the object is not registered, or points to a `struct sigio` describing the registration. This field is protected by a global mutex, `sigio_lock`. Callers to SIGIO maintenance functions must pass in this field \"by reference\" so that local register copies of the field are not made when unprotected by the lock." ], "previous_source": "", "target": [ "The SIGIO service permits processes to request the delivery of a SIGIO signal to its process group when the read/write status of specified file descriptors changes. At most one process or process group is permitted to register for SIGIO from any given kernel object, and that process or group is referred to as the owner. Each object supporting SIGIO registration contains pointer field that is `NULL` if the object is not registered, or points to a `struct sigio` describing the registration. This field is protected by a global mutex, `sigio_lock`. Callers to SIGIO maintenance functions must pass in this field \"by reference\" so that local register copies of the field are not made when unprotected by the lock." ], "id_hash": -6716565404634750467, "content_hash": -6716565404634750467, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:220", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 83, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 118, "source_unit": "https://translate-dev.freebsd.org/api/units/1134326/?format=api", "priority": 100, "id": 1134326, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=22c9f759b21161fd", "url": "https://translate-dev.freebsd.org/api/units/1134326/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.341346Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "One `struct sigio` is allocated for each registered object associated with any process or process group, and contains back-pointers to the object, owner, signal information, a credential, and the general disposition of the registration. Each process or progress group contains a list of registered `struct sigio` structures, `p_sigiolst` for processes, and `pg_sigiolst` for process groups. These lists are protected by the process or process group locks respectively. Most fields in each `struct sigio` are constant for the duration of the registration, with the exception of the `sio_pgsigio` field which links the `struct sigio` into the process or process group list. Developers implementing new kernel objects supporting SIGIO will, in general, want to avoid holding structure locks while invoking SIGIO supporting functions, such as `fsetown` or `funsetown` to avoid defining a lock order between structure locks and the global SIGIO lock. This is generally possible through use of an elevated reference count on the structure, such as reliance on a file descriptor reference to a pipe during a pipe operation." ], "previous_source": "", "target": [ "One `struct sigio` is allocated for each registered object associated with any process or process group, and contains back-pointers to the object, owner, signal information, a credential, and the general disposition of the registration. Each process or progress group contains a list of registered `struct sigio` structures, `p_sigiolst` for processes, and `pg_sigiolst` for process groups. These lists are protected by the process or process group locks respectively. Most fields in each `struct sigio` are constant for the duration of the registration, with the exception of the `sio_pgsigio` field which links the `struct sigio` into the process or process group list. Developers implementing new kernel objects supporting SIGIO will, in general, want to avoid holding structure locks while invoking SIGIO supporting functions, such as `fsetown` or `funsetown` to avoid defining a lock order between structure locks and the global SIGIO lock. This is generally possible through use of an elevated reference count on the structure, such as reliance on a file descriptor reference to a pipe during a pipe operation." ], "id_hash": -8756072258407665436, "content_hash": -8756072258407665436, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:222", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 84, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 169, "source_unit": "https://translate-dev.freebsd.org/api/units/1134328/?format=api", "priority": 100, "id": 1134328, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=067c2eac31f570e4", "url": "https://translate-dev.freebsd.org/api/units/1134328/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.389317Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Sysctl" ], "previous_source": "", "target": [ "Sysctl" ], "id_hash": -793675411341850549, "content_hash": -793675411341850549, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:223", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 85, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134330/?format=api", "priority": 100, "id": 1134330, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=74fc4c6b2001c84b", "url": "https://translate-dev.freebsd.org/api/units/1134330/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.409459Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The `sysctl` MIB service is invoked from both within the kernel and from userland applications using a system call. At least two issues are raised in locking: first, the protection of the structures maintaining the namespace, and second, interactions with kernel variables and functions that are accessed by the sysctl interface. Since sysctl permits the direct export (and modification) of kernel statistics and configuration parameters, the sysctl mechanism must become aware of appropriate locking semantics for those variables. Currently, sysctl makes use of a single global sx lock to serialize use of `sysctl`; however, it is assumed to operate under Giant and other protections are not provided. The remainder of this section speculates on locking and semantic changes to sysctl." ], "previous_source": "", "target": [ "The `sysctl` MIB service is invoked from both within the kernel and from userland applications using a system call. At least two issues are raised in locking: first, the protection of the structures maintaining the namespace, and second, interactions with kernel variables and functions that are accessed by the sysctl interface. Since sysctl permits the direct export (and modification) of kernel statistics and configuration parameters, the sysctl mechanism must become aware of appropriate locking semantics for those variables. Currently, sysctl makes use of a single global sx lock to serialize use of `sysctl`; however, it is assumed to operate under Giant and other protections are not provided. The remainder of this section speculates on locking and semantic changes to sysctl." ], "id_hash": 3687547539830994858, "content_hash": 3687547539830994858, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:226", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 86, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 120, "source_unit": "https://translate-dev.freebsd.org/api/units/1134332/?format=api", "priority": 100, "id": 1134332, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=b32cccf333fdf7aa", "url": "https://translate-dev.freebsd.org/api/units/1134332/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.424830Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Need to change the order of operations for sysctl's that update values from read old, copyin and copyout, write new to copyin, lock, read old and write new, unlock, copyout. Normal sysctl's that just copyout the old value and set a new value that they copyin may still be able to follow the old model. However, it may be cleaner to use the second model for all of the sysctl handlers to avoid lock operations." ], "previous_source": "", "target": [ "Need to change the order of operations for sysctl's that update values from read old, copyin and copyout, write new to copyin, lock, read old and write new, unlock, copyout. Normal sysctl's that just copyout the old value and set a new value that they copyin may still be able to follow the old model. However, it may be cleaner to use the second model for all of the sysctl handlers to avoid lock operations." ], "id_hash": -5889583039409538799, "content_hash": -5889583039409538799, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:228", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 87, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 75, "source_unit": "https://translate-dev.freebsd.org/api/units/1134334/?format=api", "priority": 100, "id": 1134334, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=2e43ff6e14d43911", "url": "https://translate-dev.freebsd.org/api/units/1134334/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.440441Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "To allow for the common case, a sysctl could embed a pointer to a mutex in the SYSCTL_FOO macros and in the struct. This would work for most sysctl's. For values protected by sx locks, spin mutexes, or other locking strategies besides a single sleep mutex, SYSCTL_PROC nodes could be used to get the locking right." ], "previous_source": "", "target": [ "To allow for the common case, a sysctl could embed a pointer to a mutex in the SYSCTL_FOO macros and in the struct. This would work for most sysctl's. For values protected by sx locks, spin mutexes, or other locking strategies besides a single sleep mutex, SYSCTL_PROC nodes could be used to get the locking right." ], "id_hash": -5708887129939331271, "content_hash": -5708887129939331271, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:230", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 88, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 56, "source_unit": "https://translate-dev.freebsd.org/api/units/1134336/?format=api", "priority": 100, "id": 1134336, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=30c5f566fd2ab739", "url": "https://translate-dev.freebsd.org/api/units/1134336/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.487337Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Taskqueue" ], "previous_source": "", "target": [ "Taskqueue" ], "id_hash": -5665239071920150604, "content_hash": -5665239071920150604, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:231", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 89, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1134338/?format=api", "priority": 100, "id": 1134338, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=316107146e8927b4", "url": "https://translate-dev.freebsd.org/api/units/1134338/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.504215Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The taskqueue's interface has two basic locks associated with it in order to protect the related shared data. The `taskqueue_queues_mutex` is meant to serve as a lock to protect the `taskqueue_queues` TAILQ. The other mutex lock associated with this system is the one in the `struct taskqueue` data structure. The use of the synchronization primitive here is to protect the integrity of the data in the `struct taskqueue`. It should be noted that there are no separate macros to assist the user in locking down his/her own work since these locks are most likely not going to be used outside of [.filename]#kern/subr_taskqueue.c#." ], "previous_source": "", "target": [ "The taskqueue's interface has two basic locks associated with it in order to protect the related shared data. The `taskqueue_queues_mutex` is meant to serve as a lock to protect the `taskqueue_queues` TAILQ. The other mutex lock associated with this system is the one in the `struct taskqueue` data structure. The use of the synchronization primitive here is to protect the integrity of the data in the `struct taskqueue`. It should be noted that there are no separate macros to assist the user in locking down his/her own work since these locks are most likely not going to be used outside of [.filename]#kern/subr_taskqueue.c#." ], "id_hash": -288818740836725902, "content_hash": -288818740836725902, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:234", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 90, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 102, "source_unit": "https://translate-dev.freebsd.org/api/units/1134340/?format=api", "priority": 100, "id": 1134340, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=7bfde8e2abf38b72", "url": "https://translate-dev.freebsd.org/api/units/1134340/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.520219Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Implementation Notes" ], "previous_source": "", "target": [ "Implementation Notes" ], "id_hash": 6461742839068410307, "content_hash": 6461742839068410307, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:236", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 91, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1134342/?format=api", "priority": 100, "id": 1134342, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=d9acb8e05898c1c3", "url": "https://translate-dev.freebsd.org/api/units/1134342/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.539991Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Sleep Queues" ], "previous_source": "", "target": [ "Sleep Queues" ], "id_hash": 1914682859835263082, "content_hash": 1914682859835263082, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:238", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 92, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1134344/?format=api", "priority": 100, "id": 1134344, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=9a9251eaa602886a", "url": "https://translate-dev.freebsd.org/api/units/1134344/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.584345Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "A sleep queue is a structure that holds the list of threads asleep on a wait channel. Each thread that is not asleep on a wait channel carries a sleep queue structure around with it. When a thread blocks on a wait channel, it donates its sleep queue structure to that wait channel. Sleep queues associated with a wait channel are stored in a hash table." ], "previous_source": "", "target": [ "A sleep queue is a structure that holds the list of threads asleep on a wait channel. Each thread that is not asleep on a wait channel carries a sleep queue structure around with it. When a thread blocks on a wait channel, it donates its sleep queue structure to that wait channel. Sleep queues associated with a wait channel are stored in a hash table." ], "id_hash": 723000331318945460, "content_hash": 723000331318945460, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:241", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 93, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/1134346/?format=api", "priority": 100, "id": 1134346, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=8a089cf880c166b4", "url": "https://translate-dev.freebsd.org/api/units/1134346/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.605086Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The sleep queue hash table holds sleep queues for wait channels that have at least one blocked thread. Each entry in the hash table is called a sleepqueue chain. The chain contains a linked list of sleep queues and a spin mutex. The spin mutex protects the list of sleep queues as well as the contents of the sleep queue structures on the list. Only one sleep queue is associated with a given wait channel. If multiple threads block on a wait channel than the sleep queues associated with all but the first thread are stored on a list of free sleep queues in the master sleep queue. When a thread is removed from the sleep queue it is given one of the sleep queue structures from the master queue's free list if it is not the only thread asleep on the queue. The last thread is given the master sleep queue when it is resumed. Since threads may be removed from the sleep queue in a different order than they are added, a thread may depart from a sleep queue with a different sleep queue structure than the one it arrived with." ], "previous_source": "", "target": [ "The sleep queue hash table holds sleep queues for wait channels that have at least one blocked thread. Each entry in the hash table is called a sleepqueue chain. The chain contains a linked list of sleep queues and a spin mutex. The spin mutex protects the list of sleep queues as well as the contents of the sleep queue structures on the list. Only one sleep queue is associated with a given wait channel. If multiple threads block on a wait channel than the sleep queues associated with all but the first thread are stored on a list of free sleep queues in the master sleep queue. When a thread is removed from the sleep queue it is given one of the sleep queue structures from the master queue's free list if it is not the only thread asleep on the queue. The last thread is given the master sleep queue when it is resumed. Since threads may be removed from the sleep queue in a different order than they are added, a thread may depart from a sleep queue with a different sleep queue structure than the one it arrived with." ], "id_hash": -7203226032141795210, "content_hash": -7203226032141795210, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:243", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 94, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 193, "source_unit": "https://translate-dev.freebsd.org/api/units/1134348/?format=api", "priority": 100, "id": 1134348, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=1c0900168d578076", "url": "https://translate-dev.freebsd.org/api/units/1134348/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.625007Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "The `sleepq_lock` function locks the spin mutex of the sleep queue chain that maps to a specific wait channel. The `sleepq_lookup` function looks in the hash table for the master sleep queue associated with a given wait channel. If no master sleep queue is found, it returns `NULL`. The `sleepq_release` function unlocks the spin mutex associated with a given wait channel." ], "previous_source": "", "target": [ "The `sleepq_lock` function locks the spin mutex of the sleep queue chain that maps to a specific wait channel. The `sleepq_lookup` function looks in the hash table for the master sleep queue associated with a given wait channel. If no master sleep queue is found, it returns `NULL`. The `sleepq_release` function unlocks the spin mutex associated with a given wait channel." ], "id_hash": -1247369725148068346, "content_hash": -1247369725148068346, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:245", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 95, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 61, "source_unit": "https://translate-dev.freebsd.org/api/units/1134350/?format=api", "priority": 100, "id": 1134350, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=6eb073d804f90606", "url": "https://translate-dev.freebsd.org/api/units/1134350/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.643198Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "A thread is added to a sleep queue via the `sleepq_add`. This function accepts the wait channel, a pointer to the mutex that protects the wait channel, a wait message description string, and a mask of flags. The sleep queue chain should be locked via `sleepq_lock` before this function is called. If no mutex protects the wait channel (or it is protected by Giant), then the mutex pointer argument should be `NULL`. The flags argument contains a type field that indicates the kind of sleep queue that the thread is being added to and a flag to indicate if the sleep is interruptible (`SLEEPQ_INTERRUPTIBLE`). Currently there are only two types of sleep queues: traditional sleep queues managed via the `msleep` and `wakeup` functions (`SLEEPQ_MSLEEP`) and condition variable sleep queues (`SLEEPQ_CONDVAR`). The sleep queue type and lock pointer argument are used solely for internal assertion checking. Code that calls `sleepq_add` should explicitly unlock any interlock protecting the wait channel after the associated sleepqueue chain has been locked via `sleepq_lock` and before blocking on the sleep queue via one of the waiting functions." ], "previous_source": "", "target": [ "A thread is added to a sleep queue via the `sleepq_add`. This function accepts the wait channel, a pointer to the mutex that protects the wait channel, a wait message description string, and a mask of flags. The sleep queue chain should be locked via `sleepq_lock` before this function is called. If no mutex protects the wait channel (or it is protected by Giant), then the mutex pointer argument should be `NULL`. The flags argument contains a type field that indicates the kind of sleep queue that the thread is being added to and a flag to indicate if the sleep is interruptible (`SLEEPQ_INTERRUPTIBLE`). Currently there are only two types of sleep queues: traditional sleep queues managed via the `msleep` and `wakeup` functions (`SLEEPQ_MSLEEP`) and condition variable sleep queues (`SLEEPQ_CONDVAR`). The sleep queue type and lock pointer argument are used solely for internal assertion checking. Code that calls `sleepq_add` should explicitly unlock any interlock protecting the wait channel after the associated sleepqueue chain has been locked via `sleepq_lock` and before blocking on the sleep queue via one of the waiting functions." ], "id_hash": 997180401207099283, "content_hash": 997180401207099283, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:247", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 96, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 181, "source_unit": "https://translate-dev.freebsd.org/api/units/1134352/?format=api", "priority": 100, "id": 1134352, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=8dd6b24aa6ee3f93", "url": "https://translate-dev.freebsd.org/api/units/1134352/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.695467Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "A timeout for a sleep is set by invoking `sleepq_set_timeout`. The function accepts the wait channel and the timeout time as a relative tick count as its arguments. If a sleep should be interrupted by arriving signals, the `sleepq_catch_signals` function should be called as well. This function accepts the wait channel as its only parameter. If there is already a signal pending for this thread, then `sleepq_catch_signals` will return a signal number; otherwise, it will return 0." ], "previous_source": "", "target": [ "A timeout for a sleep is set by invoking `sleepq_set_timeout`. The function accepts the wait channel and the timeout time as a relative tick count as its arguments. If a sleep should be interrupted by arriving signals, the `sleepq_catch_signals` function should be called as well. This function accepts the wait channel as its only parameter. If there is already a signal pending for this thread, then `sleepq_catch_signals` will return a signal number; otherwise, it will return 0." ], "id_hash": -7866830466678696394, "content_hash": -7866830466678696394, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:249", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 97, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 77, "source_unit": "https://translate-dev.freebsd.org/api/units/1134354/?format=api", "priority": 100, "id": 1134354, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=12d3675eed655636", "url": "https://translate-dev.freebsd.org/api/units/1134354/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.718803Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Once a thread has been added to a sleep queue, it blocks using one of the `sleepq_wait` functions. There are four wait functions depending on whether or not the caller wishes to use a timeout or have the sleep aborted by caught signals or an interrupt from the userland thread scheduler. The `sleepq_wait` function simply waits until the current thread is explicitly resumed by one of the wakeup functions. The `sleepq_timedwait` function waits until either the thread is explicitly resumed or the timeout set by an earlier call to `sleepq_set_timeout` expires. The `sleepq_wait_sig` function waits until either the thread is explicitly resumed or its sleep is aborted. The `sleepq_timedwait_sig` function waits until either the thread is explicitly resumed, the timeout set by an earlier call to `sleepq_set_timeout` expires, or the thread's sleep is aborted. All of the wait functions accept the wait channel as their first parameter. In addition, the `sleepq_timedwait_sig` function accepts a second boolean parameter to indicate if the earlier call to `sleepq_catch_signals` found a pending signal." ], "previous_source": "", "target": [ "Once a thread has been added to a sleep queue, it blocks using one of the `sleepq_wait` functions. There are four wait functions depending on whether or not the caller wishes to use a timeout or have the sleep aborted by caught signals or an interrupt from the userland thread scheduler. The `sleepq_wait` function simply waits until the current thread is explicitly resumed by one of the wakeup functions. The `sleepq_timedwait` function waits until either the thread is explicitly resumed or the timeout set by an earlier call to `sleepq_set_timeout` expires. The `sleepq_wait_sig` function waits until either the thread is explicitly resumed or its sleep is aborted. The `sleepq_timedwait_sig` function waits until either the thread is explicitly resumed, the timeout set by an earlier call to `sleepq_set_timeout` expires, or the thread's sleep is aborted. All of the wait functions accept the wait channel as their first parameter. In addition, the `sleepq_timedwait_sig` function accepts a second boolean parameter to indicate if the earlier call to `sleepq_catch_signals` found a pending signal." ], "id_hash": -7874123666220394195, "content_hash": -7874123666220394195, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:251", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 98, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 169, "source_unit": "https://translate-dev.freebsd.org/api/units/1134356/?format=api", "priority": 100, "id": 1134356, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=12b97e3e956fd92d", "url": "https://translate-dev.freebsd.org/api/units/1134356/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.743146Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "If the thread is explicitly resumed or is aborted by a signal, then a value of zero is returned by the wait function to indicate a successful sleep. If the thread is resumed by either a timeout or an interrupt from the userland thread scheduler then an appropriate errno value is returned instead. Note that since `sleepq_wait` can only return 0 it does not return anything and the caller should assume a successful sleep. Also, if a thread's sleep times out and is aborted simultaneously then `sleepq_timedwait_sig` will return an error indicating that a timeout occurred. If an error value of 0 is returned and either `sleepq_wait_sig` or `sleepq_timedwait_sig` was used to block, then the function `sleepq_calc_signal_retval` should be called to check for any pending signals and calculate an appropriate return value if any are found. The signal number returned by the earlier call to `sleepq_catch_signals` should be passed as the sole argument to `sleepq_calc_signal_retval`." ], "previous_source": "", "target": [ "If the thread is explicitly resumed or is aborted by a signal, then a value of zero is returned by the wait function to indicate a successful sleep. If the thread is resumed by either a timeout or an interrupt from the userland thread scheduler then an appropriate errno value is returned instead. Note that since `sleepq_wait` can only return 0 it does not return anything and the caller should assume a successful sleep. Also, if a thread's sleep times out and is aborted simultaneously then `sleepq_timedwait_sig` will return an error indicating that a timeout occurred. If an error value of 0 is returned and either `sleepq_wait_sig` or `sleepq_timedwait_sig` was used to block, then the function `sleepq_calc_signal_retval` should be called to check for any pending signals and calculate an appropriate return value if any are found. The signal number returned by the earlier call to `sleepq_catch_signals` should be passed as the sole argument to `sleepq_calc_signal_retval`." ], "id_hash": 1130637735844263062, "content_hash": 1130637735844263062, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:253", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 99, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 155, "source_unit": "https://translate-dev.freebsd.org/api/units/1134358/?format=api", "priority": 100, "id": 1134358, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=8fb0d507c6a63496", "url": "https://translate-dev.freebsd.org/api/units/1134358/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.794020Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "Threads asleep on a wait channel are explicitly resumed by the `sleepq_broadcast` and `sleepq_signal` functions. Both functions accept the wait channel from which to resume threads, a priority to raise resumed threads to, and a flags argument to indicate which type of sleep queue is being resumed. The priority argument is treated as a minimum priority. If a thread being resumed already has a higher priority (numerically lower) than the priority argument then its priority is not adjusted. The flags argument is used for internal assertions to ensure that sleep queues are not being treated as the wrong type. For example, the condition variable functions should not resume threads on a traditional sleep queue. The `sleepq_broadcast` function resumes all threads that are blocked on the specified wait channel while `sleepq_signal` only resumes the highest priority thread blocked on the wait channel. The sleep queue chain should first be locked via the `sleepq_lock` function before calling these functions." ], "previous_source": "", "target": [ "Threads asleep on a wait channel are explicitly resumed by the `sleepq_broadcast` and `sleepq_signal` functions. Both functions accept the wait channel from which to resume threads, a priority to raise resumed threads to, and a flags argument to indicate which type of sleep queue is being resumed. The priority argument is treated as a minimum priority. If a thread being resumed already has a higher priority (numerically lower) than the priority argument then its priority is not adjusted. The flags argument is used for internal assertions to ensure that sleep queues are not being treated as the wrong type. For example, the condition variable functions should not resume threads on a traditional sleep queue. The `sleepq_broadcast` function resumes all threads that are blocked on the specified wait channel while `sleepq_signal` only resumes the highest priority thread blocked on the wait channel. The sleep queue chain should first be locked via the `sleepq_lock` function before calling these functions." ], "id_hash": -6390541369801379156, "content_hash": -6390541369801379156, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:255", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 100, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 157, "source_unit": "https://translate-dev.freebsd.org/api/units/1134360/?format=api", "priority": 100, "id": 1134360, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=27503c7b928cf2ac", "url": "https://translate-dev.freebsd.org/api/units/1134360/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.814342Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbooksmp_index/en/?format=api", "source": [ "A sleeping thread may have its sleep interrupted by calling the `sleepq_abort` function. This function must be called with `sched_lock` held and the thread must be queued on a sleep queue. A thread may also be removed from a specific sleep queue via the `sleepq_remove` function. This function accepts both a thread and a wait channel as an argument and only awakens the thread if it is on the sleep queue for the specified wait channel. If the thread is not on a sleep queue or it is on a sleep queue for a different wait channel, then this function does nothing." ], "previous_source": "", "target": [ "A sleeping thread may have its sleep interrupted by calling the `sleepq_abort` function. This function must be called with `sched_lock` held and the thread must be queued on a sleep queue. A thread may also be removed from a specific sleep queue via the `sleepq_remove` function. This function accepts both a thread and a wait channel as an argument and only awakens the thread if it is on the sleep queue for the specified wait channel. If the thread is not on a sleep queue or it is on a sleep queue for a different wait channel, then this function does nothing." ], "id_hash": 653381540180363219, "content_hash": 653381540180363219, "location": "documentation/content/en/books/arch-handbook/smp/_index.adoc:257", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 101, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 102, "source_unit": "https://translate-dev.freebsd.org/api/units/1134362/?format=api", "priority": 100, "id": 1134362, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbooksmp_index/en/?checksum=8911470c8d3f87d3", "url": "https://translate-dev.freebsd.org/api/units/1134362/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:16:48.882595Z" } ] }{ "count": 156, "next": "