open_directory() is similar to open_file_dma() with just the O_ flags adjusted. list_directory() returns a subscription(), so that both the producer and the consumer can be asynchronous.
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
No semantic change; just cleaning things up. Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>