about summary refs log tree commit diff
path: root/library/std/src/sys/thread_local/mod.rs
diff options
context:
space:
mode:
authorAyush Singh <ayush@beagleboard.org>2025-03-14 22:48:38 +0530
committerAyush Singh <ayush@beagleboard.org>2025-03-18 08:11:16 +0530
commit2e70cfc04d29ec499e076746d2588d8e7a4e0fe6 (patch)
treec6748f740bf73a9b2c619aa1fcf56d89cda4e33d /library/std/src/sys/thread_local/mod.rs
parentcb50d4d8566b1ee97e9a5ef95a37a40936a62c30 (diff)
downloadrust-2e70cfc04d29ec499e076746d2588d8e7a4e0fe6.tar.gz
rust-2e70cfc04d29ec499e076746d2588d8e7a4e0fe6.zip
uefi: fs: Implement exists
Also adds the initial file abstractions.

The file opening algorithm is inspired from UEFI shell. It starts by
classifying if the Path is Shell mapping, text representation of device
path protocol, or a relative path and converts into an absolute text
representation of device path protocol.

After that, it queries all handles supporting
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL and opens the volume that matches the
device path protocol prefix (similar to Windows drive). After that, it
opens the file in the volume using the remaining pat.

It also introduces OwnedDevicePath and BorrowedDevicePath abstractions
to allow working with the base UEFI and Shell device paths efficiently.

DevicePath in UEFI behaves like an a group of nodes laied out in the
memory contiguously and thus can be modeled using iterators.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Diffstat (limited to 'library/std/src/sys/thread_local/mod.rs')
0 files changed, 0 insertions, 0 deletions