Skip to content
Snippets Groups Projects
  • Rob Clark's avatar
    4bbcc965
    fs: add fs_readdir() · 4bbcc965
    Rob Clark authored
    
    Needed to support efi file protocol.  The fallback.efi loader wants
    to be able to read the contents of the /EFI directory to find an OS
    to boot.
    
    Modelled after POSIX opendir()/readdir()/closedir().  Unlike the other
    fs APIs, this is stateful (ie. state is held in the FS_DIR "directory
    stream"), to avoid re-traversing of the directory structure at each
    step.  The directory stream must be released with closedir() when it
    is no longer needed.
    
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    Reviewed-by: default avatarŁukasz Majewski <lukma@denx.de>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    4bbcc965
    History
    fs: add fs_readdir()
    Rob Clark authored
    
    Needed to support efi file protocol.  The fallback.efi loader wants
    to be able to read the contents of the /EFI directory to find an OS
    to boot.
    
    Modelled after POSIX opendir()/readdir()/closedir().  Unlike the other
    fs APIs, this is stateful (ie. state is held in the FS_DIR "directory
    stream"), to avoid re-traversing of the directory structure at each
    step.  The directory stream must be released with closedir() when it
    is no longer needed.
    
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    Reviewed-by: default avatarŁukasz Majewski <lukma@denx.de>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>