Revocable references vs. krefs
Revocable references vs. krefs
Posted Sep 29, 2025 9:10 UTC (Mon) by farnz (subscriber, #17727)In reply to: Revocable references vs. krefs by Alan.Stern
Parent article: Revocable references for transient devices
The use case is where you have something claiming a removable device, like a PPP driver (for example); in other words, where the subsystem registers with the removable device, rather than the normal way round.
You want the subsystem to stop doing work that depends on the removable device being present as quickly as possible - there is no point spending lots of compute on building a new PPP frame to send, or a new work item to pass across to the GPU, if the underlying hardware is gone. Instead, you want it to error out early and stop wasting time doing things that it's going to submit to a driver that's already deregistered from the subsystem.
Posted Sep 29, 2025 13:55 UTC (Mon)
by Alan.Stern (subscriber, #12437)
[Link] (1 responses)
Posted Sep 30, 2025 0:50 UTC (Tue)
by riking (subscriber, #95706)
[Link]
Revocable references vs. krefs
Revocable references vs. krefs
