Download data/test.jsonl from HyperionGrayAI/cybermodels-team: direct link, hf CLI and curl.
- Browser
- Download file 53.2 kB
-
https://huggingface.co/datasets/HyperionGrayAI/cybermodels-team/resolve/main/data/test.jsonl
- Command line
-
hf download hf://datasets/HyperionGrayAI/cybermodels-team/data/test.jsonl
-
curl -L -o test.jsonl https://huggingface.co/datasets/HyperionGrayAI/cybermodels-team/resolve/main/data/test.jsonl
53.2 kB
| {"model": "cybermodels-windows", "id": "d497b19680efa90f", "split": "test", "passage": "event-objects", "condition": "closed", "question": "What happens to a manual-reset event after it releases a waiter?", "answer": "It stays signaled until explicitly reset, allowing other waiting threads to proceed.", "prompt": "Answer the Windows question concisely.\nQuestion: What happens to a manual-reset event after it releases a waiter?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "d497b19680efa90f", "split": "test", "passage": "event-objects", "condition": "rag", "question": "What happens to a manual-reset event after it releases a waiter?", "answer": "It stays signaled until explicitly reset, allowing other waiting threads to proceed. [Event Objects (Synchronization)](https://learn.microsoft.com/en-us/windows/win32/sync/event-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Event Objects (Synchronization)](https://learn.microsoft.com/en-us/windows/win32/sync/event-objects)\nAn *event object* is a synchronization object whose state can be explicitly set to signaled by use of the SetEvent function. Following are the two types of event object. | Object | Description | |--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Manual-reset event | An event object whose state remains signaled until it is explicitly reset to nonsignaled by the ResetEvent function. While it is signaled, any number of waiting threads, or threads that subsequently specify the same event object in one of the wait functions, can be released. | | Auto-reset event | An event object whose state remains signaled until a single waiting thread is released, at which time the system automatically sets the state to nonsignaled. If no threads are waiting, the event object's state remains signaled.\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\nEvery other standard driver routine executes in an arbitrary thread context: that of whatever thread happens to be current when the driver routine is called to process a queued operation or to handle a device interrupt. Moreover, most standard driver routines are run at a raised IRQL, either at DISPATCH_LEVEL, or for device drivers, at DIRQL. If necessary, a driver can create a device-dedicated thread, which can wait for the driver's other routines (except an ISR or *SynchCritSection* routine) to set a dispatcher object to the Signaled state and reset to the Not-Signaled state.\n\nQuestion: What happens to a manual-reset event after it releases a waiter?", "retrieved": ["event-objects", "introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-windows", "id": "28d7a921a876ccfd", "split": "test", "passage": "event-objects", "condition": "closed", "question": "No thread was waiting when an auto-reset event was signaled. Does a later waiter see it?", "answer": "Yes. It stays signaled until it releases a waiting thread, then resets automatically.", "prompt": "Answer the Windows question concisely.\nQuestion: No thread was waiting when an auto-reset event was signaled. Does a later waiter see it?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "28d7a921a876ccfd", "split": "test", "passage": "event-objects", "condition": "rag", "question": "No thread was waiting when an auto-reset event was signaled. Does a later waiter see it?", "answer": "Yes. It stays signaled until it releases a waiting thread, then resets automatically. [Event Objects (Synchronization)](https://learn.microsoft.com/en-us/windows/win32/sync/event-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Event Objects (Synchronization)](https://learn.microsoft.com/en-us/windows/win32/sync/event-objects)\nAn *event object* is a synchronization object whose state can be explicitly set to signaled by use of the SetEvent function. Following are the two types of event object. | Object | Description | |--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Manual-reset event | An event object whose state remains signaled until it is explicitly reset to nonsignaled by the ResetEvent function. While it is signaled, any number of waiting threads, or threads that subsequently specify the same event object in one of the wait functions, can be released. | | Auto-reset event | An event object whose state remains signaled until a single waiting thread is released, at which time the system automatically sets the state to nonsignaled. If no threads are waiting, the event object's state remains signaled.\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\nWhenever a dispatcher object is set to the Signaled state, the kernel changes the state of any thread waiting for that object to *ready*. (Synchronization timers and synchronization events are exceptions to this rule; when a synchronization event or timer is signaled, only one waiting thread is set to the ready state. For more information, see Timer Objects and DPCs and Event Objects.) A thread in the ready state will be scheduled to run according to its current run-time thread priority and the current availability of processors for any thread with that priority.\n\nQuestion: No thread was waiting when an auto-reset event was signaled. Does a later waiter see it?", "retrieved": ["event-objects", "introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-windows", "id": "71fba3d72f092acc", "split": "test", "passage": "condition-variables", "condition": "closed", "question": "Why should a Windows condition-variable wait recheck its predicate after waking?", "answer": "Spurious and stolen wakeups are possible. After reacquiring the lock, retest the predicate in a loop.", "prompt": "Answer the Windows question concisely.\nQuestion: Why should a Windows condition-variable wait recheck its predicate after waking?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "71fba3d72f092acc", "split": "test", "passage": "condition-variables", "condition": "rag", "question": "Why should a Windows condition-variable wait recheck its predicate after waking?", "answer": "Spurious and stolen wakeups are possible. After reacquiring the lock, retest the predicate in a loop. [Condition Variables](https://learn.microsoft.com/en-us/windows/win32/sync/condition-variables)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Condition Variables](https://learn.microsoft.com/en-us/windows/win32/sync/condition-variables)\nWakes a single thread waiting on the specified condition variable. | The following pseudocode demonstrates the typical usage pattern of condition variables. For example, in an implementation of a reader/writer lock, the `TestPredicate` function would verify that the current lock request is compatible with the existing owners. If it is, acquire the lock; otherwise, sleep. For a more detailed example, see Using Condition Variables. Condition variables are subject to spurious wakeups (those not associated with an explicit wake) and stolen wakeups (another thread manages to run before the woken thread). Therefore, you should recheck a predicate (typically in a while loop) after a sleep operation returns.\n\n[Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)\nIf more than one thread is waiting on a mutex, a waiting thread is selected. Do not assume a first-in, first-out (FIFO) order. External events such as kernel-mode APCs can change the wait order. After a thread obtains ownership of a mutex, it can specify the same mutex in repeated calls to the wait-functions without blocking its execution. This prevents a thread from deadlocking itself while waiting for a mutex that it already owns. To release its ownership under such circumstances, the thread must call ReleaseMutex once for each time that the mutex satisfied the conditions of a wait function.\n\nQuestion: Why should a Windows condition-variable wait recheck its predicate after waking?", "retrieved": ["condition-variables", "mutex-objects"]} | |
| {"model": "cybermodels-windows", "id": "8d0cd1227652f084", "split": "test", "passage": "condition-variables", "condition": "closed", "question": "Which condition-variable operation wakes every waiting thread?", "answer": "WakeAllConditionVariable wakes all waiters on that condition variable. Each must still reacquire the lock and check its predicate.", "prompt": "Answer the Windows question concisely.\nQuestion: Which condition-variable operation wakes every waiting thread?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "8d0cd1227652f084", "split": "test", "passage": "condition-variables", "condition": "rag", "question": "Which condition-variable operation wakes every waiting thread?", "answer": "WakeAllConditionVariable wakes all waiters on that condition variable. Each must still reacquire the lock and check its predicate. [Condition Variables](https://learn.microsoft.com/en-us/windows/win32/sync/condition-variables)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Condition Variables](https://learn.microsoft.com/en-us/windows/win32/sync/condition-variables)\nCondition variables are synchronization primitives that enable threads to wait until a particular condition occurs. Condition variables are user-mode objects that cannot be shared across processes. Condition variables enable threads to atomically release a lock and enter the sleeping state. They can be used with critical sections or slim reader/writer (SRW) locks. Condition variables support operations that \"wake one\" or \"wake all\" waiting threads. After a thread is woken, it re-acquires the lock it released when the thread entered the sleeping state.\n\n[I/O completion ports](https://learn.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports)\nThe I/O completion port handle and every file handle associated with that particular I/O completion port are known as *references to the I/O completion port*. The I/O completion port is released when there are no more references to it. Therefore, all of these handles must be properly closed to release the I/O completion port and its associated system resources. After these conditions are satisfied, an application should close the I/O completion port handle by calling the CloseHandle function.\n\nQuestion: Which condition-variable operation wakes every waiting thread?", "retrieved": ["condition-variables", "i-o-completion-ports"]} | |
| {"model": "cybermodels-windows", "id": "10a12e19289b92e2", "split": "test", "passage": "i-o-completion-ports", "condition": "closed", "question": "How do the queue orders for completion packets and waiting completion-port threads differ?", "answer": "Packets are queued first-in, first-out. Threads blocked on the port are released in last-in, first-out order subject to the concurrency limit.", "prompt": "Answer the Windows question concisely.\nQuestion: How do the queue orders for completion packets and waiting completion-port threads differ?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "10a12e19289b92e2", "split": "test", "passage": "i-o-completion-ports", "condition": "rag", "question": "How do the queue orders for completion packets and waiting completion-port threads differ?", "answer": "Packets are queued first-in, first-out. Threads blocked on the port are released in last-in, first-out order subject to the concurrency limit. [I/O completion ports](https://learn.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[I/O completion ports](https://learn.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports)\nThe CreateIoCompletionPort function creates an I/O completion port and associates one or more file handles with that port. When an asynchronous I/O operation on one of these file handles completes, an I/O completion packet is queued in first-in-first-out (FIFO) order to the associated I/O completion port. One powerful use for this mechanism is to combine the synchronization point for multiple file handles into a single object, although there are also other useful applications. Please note that while the packets are queued in FIFO order they may be dequeued in a different order.\n\n[Event Objects (Synchronization)](https://learn.microsoft.com/en-us/windows/win32/sync/event-objects)\nIf more than one thread is waiting, a waiting thread is selected. Do not assume a first-in, first-out (FIFO) order. External events such as kernel-mode APCs can change the wait order.<br/> | The event object is useful in sending a signal to a thread indicating that a particular event has occurred. For example, in overlapped input and output, the system sets a specified event object to the signaled state when the overlapped operation has been completed. A single thread can specify different event objects in several simultaneous overlapped operations, then use one of the multiple-object wait functions to wait for the state of any one of the event objects to be signaled.\n\nQuestion: How do the queue orders for completion packets and waiting completion-port threads differ?", "retrieved": ["i-o-completion-ports", "event-objects"]} | |
| {"model": "cybermodels-windows", "id": "33a8e51629783b38", "split": "test", "passage": "i-o-completion-ports", "condition": "closed", "question": "What does the concurrency value on an I/O completion port control?", "answer": "It limits the number of runnable threads associated with the port, allowing other waiting workers to remain blocked.", "prompt": "Answer the Windows question concisely.\nQuestion: What does the concurrency value on an I/O completion port control?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "33a8e51629783b38", "split": "test", "passage": "i-o-completion-ports", "condition": "rag", "question": "What does the concurrency value on an I/O completion port control?", "answer": "It limits the number of runnable threads associated with the port, allowing other waiting workers to remain blocked. [I/O completion ports](https://learn.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[I/O completion ports](https://learn.microsoft.com/en-us/windows/win32/fileio/i-o-completion-ports)\n> [!NOTE] > An I/O completion port is associated with the process that created it and is not sharable between processes. However, a single handle is sharable between threads in the same process. The most important property of an I/O completion port to consider carefully is the concurrency value. The concurrency value of a completion port is specified when it is created with CreateIoCompletionPort via the *NumberOfConcurrentThreads* parameter. This value limits the number of runnable threads associated with the completion port. When the total number of runnable threads associated with the completion port reaches the concurrency value, the system blocks the execution of any subsequent threads associated with that completion port until the number of runnable threads drops below the concurrency value.\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\n- Driver dispatch routines servicing read/write requests generally cannot wait for a dispatcher object to be set to the Signaled state. - A dispatch routine for a device I/O control request can wait for a dispatcher object to be set to the Signaled state only if the transfer type for the I/O control code is METHOD_BUFFERED. - SCSI miniport drivers should not use kernel dispatcher objects. SCSI miniport drivers should call only SCSI Port Driver Support Routines.\n\nQuestion: What does the concurrency value on an I/O completion port control?", "retrieved": ["i-o-completion-ports", "introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-windows", "id": "39c7787f32b15d1e", "split": "test", "passage": "canceling-irps", "condition": "closed", "question": "What kernel routine begins cancellation of an I/O request packet?", "answer": "IoCancelIrp initiates cancellation. The cancellation path must complete the request while maintaining system integrity.", "prompt": "Answer the Windows question concisely.\nQuestion: What kernel routine begins cancellation of an I/O request packet?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "39c7787f32b15d1e", "split": "test", "passage": "canceling-irps", "condition": "rag", "question": "What kernel routine begins cancellation of an I/O request packet?", "answer": "IoCancelIrp initiates cancellation. The cancellation path must complete the request while maintaining system integrity. [Canceling IRPs](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/canceling-irps)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Canceling IRPs](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/canceling-irps)\nTo \"cancel an IRP\" means to complete the IRP as quickly as possible while still maintaining system integrity. For a general discussion of IRP completion, see Completing IRPs. The cancellation process begins when either the system or a driver calls IoCancelIrp. This routine is called for each IRP that is associated with the thread that has not yet fully completed. The system cancels unprocessed IRPs if the thread that initiated the I/O request exits. Drivers can cancel only IRPs that they have created (see Creating IRPs for Lower-Level Drivers.)\n\n[Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)\ncommon file handle. To cancel all pending asynchronous I/O operations, use either: - CancelIo: This function only cancels operations issued by the calling thread for the specified file handle. - CancelIoEx: This function cancels all operations issued by the threads for the specified file handle. Use CancelSynchronousIo to cancel pending synchronous I/O operations. The ReadFileEx and WriteFileEx functions enable an application to specify a routine to execute (see FileIOCompletionRoutine) when the asynchronous I/O request is completed.\n\nQuestion: What kernel routine begins cancellation of an I/O request packet?", "retrieved": ["canceling-irps", "synchronous-and-asynchronous-i-o"]} | |
| {"model": "cybermodels-windows", "id": "52f1f9c35c67a5c0", "split": "test", "passage": "canceling-irps", "condition": "closed", "question": "Is there a Windows facility for drivers that need a queue of cancelable IRPs?", "answer": "Yes. A cancel-safe IRP queue provides cancellation support for drivers that queue requests.", "prompt": "Answer the Windows question concisely.\nQuestion: Is there a Windows facility for drivers that need a queue of cancelable IRPs?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "52f1f9c35c67a5c0", "split": "test", "passage": "canceling-irps", "condition": "rag", "question": "Is there a Windows facility for drivers that need a queue of cancelable IRPs?", "answer": "Yes. A cancel-safe IRP queue provides cancellation support for drivers that queue requests. [Canceling IRPs](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/canceling-irps)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Canceling IRPs](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/canceling-irps)\nDrivers in which IRPs might remain queued for an indefinite interval (so a user could cancel a previously submitted I/O request) must have one or more *Cancel* routines to complete user-canceled I/O requests. For example, keyboard, mouse, parallel, serial, and sound device drivers (or drivers layered over them) and file system drivers should have *Cancel* routines. Drivers for Microsoft Windows XP and later operating systems can use cancel-safe IRP queues rather than implement their own *Cancel* routines.\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\nAs a general guideline, if you expect that your new device driver will often need to stall for longer than 50 microseconds while it waits for device-state changes during I/O operations, consider implementing a driver with a device-dedicated thread. If the device driver is also a highest-level driver, consider using system worker threads and implementing one or more worker-thread callback routines. See PsCreateSystemThread and Managing Interlocked Queues with a Driver-Created Thread.\n\nQuestion: Is there a Windows facility for drivers that need a queue of cancelable IRPs?", "retrieved": ["canceling-irps", "introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-linux-drivers", "id": "439fc846eae2caf1", "passage": "kref", "condition": "closed", "split": "test", "question": "Should I take the kref before or after handing a pointer to a worker thread?", "answer": "Take a reference before the handoff so the object stays alive for the worker.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Should I take the kref before or after handing a pointer to a worker thread?"} | |
| {"model": "cybermodels-linux-drivers", "id": "439fc846eae2caf1", "passage": "kref", "condition": "rag", "split": "test", "question": "Should I take the kref before or after handing a pointer to a worker thread?", "answer": "Take a reference before the handoff so the object stays alive for the worker. [Object lifetime with kref references](https://docs.kernel.org/6.12/core-api/kref.html)", "retrieved": ["kref", "workqueue"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nObject lifetime with kref references\nFurther reading: https://docs.kernel.org/6.12/core-api/kref.html\nEditorial summary: A kref tracks object lifetime. Take a reference before handing an object to another thread, and drop the reference when that owner finishes. The last put calls the release function. Acquiring a reference through a lookup that has no existing valid reference requires serialization against final release.\n\nWorkqueue ordering and parallel execution\nFurther reading: https://docs.kernel.org/6.12/core-api/workqueue.html\nEditorial summary: Queued work items execute in worker context. When strict execution order is required, an ordered workqueue processes one item at a time in queue order. A general workqueue can have multiple workers. Choosing a bound or unbound workqueue determines how work execution relates to CPU affinity.\n\nQuestion: Should I take the kref before or after handing a pointer to a worker thread?"} | |
| {"model": "cybermodels-linux-drivers", "id": "85f79342c40b5e9a", "passage": "kref", "condition": "closed", "split": "test", "question": "When does kref_put invoke the release callback?", "answer": "When dropping that reference brings the count to zero.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: When does kref_put invoke the release callback?"} | |
| {"model": "cybermodels-linux-drivers", "id": "85f79342c40b5e9a", "passage": "kref", "condition": "rag", "split": "test", "question": "When does kref_put invoke the release callback?", "answer": "The retrieved references do not establish that. I need a source on Object lifetime with kref references.", "retrieved": ["sysfs", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSysfs attribute conventions\nFurther reading: https://docs.kernel.org/6.12/filesystems/sysfs.html\nEditorial summary: Sysfs exposes kernel objects and their attributes as directories and files. An ordinary attribute uses a show callback for reads and a store callback for writes. Text attributes conventionally describe one value; a simple array of values of the same type can also be appropriate.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: When does kref_put invoke the release callback?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f9d70efd32d688b8", "passage": "kref", "condition": "closed", "split": "test", "question": "Can an unprotected table lookup race with the last kref_put?", "answer": "Yes. Serialize acquisition from that lookup with final release or use an appropriate lifetime protection scheme.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Can an unprotected table lookup race with the last kref_put?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f9d70efd32d688b8", "passage": "kref", "condition": "rag", "split": "test", "question": "Can an unprotected table lookup race with the last kref_put?", "answer": "Yes. Serialize acquisition from that lookup with final release or use an appropriate lifetime protection scheme. [Object lifetime with kref references](https://docs.kernel.org/6.12/core-api/kref.html)", "retrieved": ["kref", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nObject lifetime with kref references\nFurther reading: https://docs.kernel.org/6.12/core-api/kref.html\nEditorial summary: A kref tracks object lifetime. Take a reference before handing an object to another thread, and drop the reference when that owner finishes. The last put calls the release function. Acquiring a reference through a lookup that has no existing valid reference requires serialization against final release.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: Can an unprotected table lookup race with the last kref_put?"} | |
| {"model": "cybermodels-linux-drivers", "id": "ae6933352e3fdf1c", "passage": "workqueue", "condition": "closed", "split": "test", "question": "Two queued work items must execute strictly in submission order. Which workqueue fits?", "answer": "Use an ordered workqueue so it runs one item at a time in queue order.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Two queued work items must execute strictly in submission order. Which workqueue fits?"} | |
| {"model": "cybermodels-linux-drivers", "id": "ae6933352e3fdf1c", "passage": "workqueue", "condition": "rag", "split": "test", "question": "Two queued work items must execute strictly in submission order. Which workqueue fits?", "answer": "Use an ordered workqueue so it runs one item at a time in queue order. [Workqueue ordering and parallel execution](https://docs.kernel.org/6.12/core-api/workqueue.html)", "retrieved": ["workqueue", "device-links"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nWorkqueue ordering and parallel execution\nFurther reading: https://docs.kernel.org/6.12/core-api/workqueue.html\nEditorial summary: Queued work items execute in worker context. When strict execution order is required, an ordered workqueue processes one item at a time in queue order. A general workqueue can have multiple workers. Choosing a bound or unbound workqueue determines how work execution relates to CPU affinity.\n\nDevice links between a consumer and a supplier\nFurther reading: https://docs.kernel.org/6.12/driver-api/device_link.html\nEditorial summary: A device link describes a consumer's dependency on a supplier. Managed links can enforce driver binding and power-management ordering. A consumer should be suspended before its supplier, and the supplier resumed before the consumer. Flags and link type determine which relationships the core enforces.\n\nQuestion: Two queued work items must execute strictly in submission order. Which workqueue fits?"} | |
| {"model": "cybermodels-linux-drivers", "id": "1798bd7a085d8722", "passage": "workqueue", "condition": "closed", "split": "test", "question": "Will two unrelated work items on a general workqueue always run serially?", "answer": "No. General workqueues can execute multiple items concurrently.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Will two unrelated work items on a general workqueue always run serially?"} | |
| {"model": "cybermodels-linux-drivers", "id": "1798bd7a085d8722", "passage": "workqueue", "condition": "rag", "split": "test", "question": "Will two unrelated work items on a general workqueue always run serially?", "answer": "No. General workqueues can execute multiple items concurrently. [Workqueue ordering and parallel execution](https://docs.kernel.org/6.12/core-api/workqueue.html)", "retrieved": ["workqueue", "kref"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nWorkqueue ordering and parallel execution\nFurther reading: https://docs.kernel.org/6.12/core-api/workqueue.html\nEditorial summary: Queued work items execute in worker context. When strict execution order is required, an ordered workqueue processes one item at a time in queue order. A general workqueue can have multiple workers. Choosing a bound or unbound workqueue determines how work execution relates to CPU affinity.\n\nObject lifetime with kref references\nFurther reading: https://docs.kernel.org/6.12/core-api/kref.html\nEditorial summary: A kref tracks object lifetime. Take a reference before handing an object to another thread, and drop the reference when that owner finishes. The last put calls the release function. Acquiring a reference through a lookup that has no existing valid reference requires serialization against final release.\n\nQuestion: Will two unrelated work items on a general workqueue always run serially?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f32d82eb1157a625", "passage": "device-links", "condition": "closed", "split": "test", "question": "For a device link, which resumes first: a consumer or its supplier?", "answer": "Resume the supplier before the dependent consumer.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: For a device link, which resumes first: a consumer or its supplier?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f32d82eb1157a625", "passage": "device-links", "condition": "rag", "split": "test", "question": "For a device link, which resumes first: a consumer or its supplier?", "answer": "Resume the supplier before the dependent consumer. [Device links between a consumer and a supplier](https://docs.kernel.org/6.12/driver-api/device_link.html)", "retrieved": ["device-links", "binding"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDevice links between a consumer and a supplier\nFurther reading: https://docs.kernel.org/6.12/driver-api/device_link.html\nEditorial summary: A device link describes a consumer's dependency on a supplier. Managed links can enforce driver binding and power-management ordering. A consumer should be suspended before its supplier, and the supplier resumed before the consumer. Flags and link type determine which relationships the core enforces.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nQuestion: For a device link, which resumes first: a consumer or its supplier?"} | |
| {"model": "cybermodels-linux-drivers", "id": "e6ea86b753a2fe78", "passage": "device-links", "condition": "closed", "split": "test", "question": "Why would a driver describe a dependency by adding a device link?", "answer": "It gives the driver core an explicit consumer-supplier relationship for the applicable binding and power-management ordering.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Why would a driver describe a dependency by adding a device link?"} | |
| {"model": "cybermodels-linux-drivers", "id": "e6ea86b753a2fe78", "passage": "device-links", "condition": "rag", "split": "test", "question": "Why would a driver describe a dependency by adding a device link?", "answer": "It gives the driver core an explicit consumer-supplier relationship for the applicable binding and power-management ordering. [Device links between a consumer and a supplier](https://docs.kernel.org/6.12/driver-api/device_link.html)", "retrieved": ["device-links", "sysfs"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDevice links between a consumer and a supplier\nFurther reading: https://docs.kernel.org/6.12/driver-api/device_link.html\nEditorial summary: A device link describes a consumer's dependency on a supplier. Managed links can enforce driver binding and power-management ordering. A consumer should be suspended before its supplier, and the supplier resumed before the consumer. Flags and link type determine which relationships the core enforces.\n\nSysfs attribute conventions\nFurther reading: https://docs.kernel.org/6.12/filesystems/sysfs.html\nEditorial summary: Sysfs exposes kernel objects and their attributes as directories and files. An ordinary attribute uses a show callback for reads and a store callback for writes. Text attributes conventionally describe one value; a simple array of values of the same type can also be appropriate.\n\nQuestion: Why would a driver describe a dependency by adding a device link?"} | |
| {"model": "cybermodels-web-defense", "id": "c6f49ac11fe7e438", "passage": "permissions-policy", "condition": "closed", "split": "test", "question": "Does allowing geolocation through Permissions-Policy grant user consent?", "answer": "No. The feature still follows the browser's permission and user-consent rules.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does allowing geolocation through Permissions-Policy grant user consent?"} | |
| {"model": "cybermodels-web-defense", "id": "c6f49ac11fe7e438", "passage": "permissions-policy", "condition": "rag", "split": "test", "question": "Does allowing geolocation through Permissions-Policy grant user consent?", "answer": "No. The feature still follows the browser's permission and user-consent rules. [Permissions-Policy feature restrictions](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy)", "retrieved": ["permissions-policy", "cache-control"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nPermissions-Policy feature restrictions\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy\nEditorial summary: Permissions-Policy constrains browser features available to a document and embedded contexts. An empty allowlist denies the named feature. Allowing a feature through policy does not grant user consent. Browser support and the feature's own permission rules still apply.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nQuestion: Does allowing geolocation through Permissions-Policy grant user consent?"} | |
| {"model": "cybermodels-web-defense", "id": "1a053f5a1f27fc0a", "passage": "permissions-policy", "condition": "closed", "split": "test", "question": "What does an empty allowlist mean for a named Permissions-Policy feature?", "answer": "It disables that feature for all origins covered by the policy.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What does an empty allowlist mean for a named Permissions-Policy feature?"} | |
| {"model": "cybermodels-web-defense", "id": "1a053f5a1f27fc0a", "passage": "permissions-policy", "condition": "rag", "split": "test", "question": "What does an empty allowlist mean for a named Permissions-Policy feature?", "answer": "It disables that feature for all origins covered by the policy. [Permissions-Policy feature restrictions](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy)", "retrieved": ["permissions-policy", "vary"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nPermissions-Policy feature restrictions\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy\nEditorial summary: Permissions-Policy constrains browser features available to a document and embedded contexts. An empty allowlist denies the named feature. Allowing a feature through policy does not grant user consent. Browser support and the feature's own permission rules still apply.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nQuestion: What does an empty allowlist mean for a named Permissions-Policy feature?"} | |
| {"model": "cybermodels-web-defense", "id": "e3a2c3c9ad628ce3", "passage": "clear-site-data", "condition": "closed", "split": "test", "question": "Does sending Clear-Site-Data on sign-out revoke the server-side session?", "answer": "Invalidate the session on the server as well. The header targets data held by the browser.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does sending Clear-Site-Data on sign-out revoke the server-side session?"} | |
| {"model": "cybermodels-web-defense", "id": "e3a2c3c9ad628ce3", "passage": "clear-site-data", "condition": "rag", "split": "test", "question": "Does sending Clear-Site-Data on sign-out revoke the server-side session?", "answer": "Invalidate the session on the server as well. The header targets data held by the browser. [Clear-Site-Data response on sign-out](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data)", "retrieved": ["clear-site-data", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nClear-Site-Data response on sign-out\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data\nEditorial summary: Over a secure connection, Clear-Site-Data asks a supporting browser to clear specified categories of local site data. Directives include quoted cookies, storage and cache values. Clearing client data does not revoke a session in the application's backend.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Does sending Clear-Site-Data on sign-out revoke the server-side session?"} | |
| {"model": "cybermodels-web-defense", "id": "a48f783fbe6e17ee", "passage": "clear-site-data", "condition": "closed", "split": "test", "question": "How can a secure sign-out response request removal of browser-side storage?", "answer": "Send Clear-Site-Data with the quoted storage directive and account for browser support.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: How can a secure sign-out response request removal of browser-side storage?"} | |
| {"model": "cybermodels-web-defense", "id": "a48f783fbe6e17ee", "passage": "clear-site-data", "condition": "rag", "split": "test", "question": "How can a secure sign-out response request removal of browser-side storage?", "answer": "Send Clear-Site-Data with the quoted storage directive and account for browser support. [Clear-Site-Data response on sign-out](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data)", "retrieved": ["clear-site-data", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nClear-Site-Data response on sign-out\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data\nEditorial summary: Over a secure connection, Clear-Site-Data asks a supporting browser to clear specified categories of local site data. Directives include quoted cookies, storage and cache values. Clearing client data does not revoke a session in the application's backend.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: How can a secure sign-out response request removal of browser-side storage?"} | |
| {"model": "cybermodels-web-defense", "id": "be0340f0def763ca", "passage": "vary", "condition": "closed", "split": "test", "question": "Our cache mixes negotiated language variants. Which HTTP response header describes that variation?", "answer": "Use Vary: Accept-Language if that request header selects the language representation.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Our cache mixes negotiated language variants. Which HTTP response header describes that variation?"} | |
| {"model": "cybermodels-web-defense", "id": "be0340f0def763ca", "passage": "vary", "condition": "rag", "split": "test", "question": "Our cache mixes negotiated language variants. Which HTTP response header describes that variation?", "answer": "Use Vary: Accept-Language if that request header selects the language representation. [Vary response selection in HTTP caches](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)", "retrieved": ["vary", "cache-control"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nQuestion: Our cache mixes negotiated language variants. Which HTTP response header describes that variation?"} | |
| {"model": "cybermodels-web-defense", "id": "67bb9e1053896763", "passage": "vary", "condition": "closed", "split": "test", "question": "Does a Vary header define how long a representation can stay fresh?", "answer": "No. Vary governs selection among representations. Cache freshness is a separate policy.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does a Vary header define how long a representation can stay fresh?"} | |
| {"model": "cybermodels-web-defense", "id": "67bb9e1053896763", "passage": "vary", "condition": "rag", "split": "test", "question": "Does a Vary header define how long a representation can stay fresh?", "answer": "No. Vary governs selection among representations. Cache freshness is a separate policy. [Vary response selection in HTTP caches](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)", "retrieved": ["vary", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: Does a Vary header define how long a representation can stay fresh?"} | |
| {"model": "cybermodels-web-defense", "id": "5c5ccbaf6a0a36e4", "passage": "vary", "condition": "closed", "split": "test", "question": "Should different responses for the same negotiated URL use a consistent Vary value?", "answer": "Yes. Return a consistent Vary value for that URL, including relevant revalidation responses.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Should different responses for the same negotiated URL use a consistent Vary value?"} | |
| {"model": "cybermodels-web-defense", "id": "5c5ccbaf6a0a36e4", "passage": "vary", "condition": "rag", "split": "test", "question": "Should different responses for the same negotiated URL use a consistent Vary value?", "answer": "Yes. Return a consistent Vary value for that URL, including relevant revalidation responses. [Vary response selection in HTTP caches](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)", "retrieved": ["vary", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: Should different responses for the same negotiated URL use a consistent Vary value?"} | |