Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
loopback_disk.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Embedded Solutions GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_LOOPBACK_DISK_ACCESS_H_
8#define ZEPHYR_INCLUDE_DRIVERS_LOOPBACK_DISK_ACCESS_H_
9
10#include <zephyr/drivers/disk.h>
12
18 const char *file_path;
21};
22
41int loopback_disk_access_register(struct loopback_disk_access *ctx, const char *file_path,
42 const char *disk_access_name);
43
56
57#endif /* ZEPHYR_INCLUDE_DRIVERS_LOOPBACK_DISK_ACCESS_H_ */
Disk Driver Interface.
int loopback_disk_access_register(struct loopback_disk_access *ctx, const char *file_path, const char *disk_access_name)
Register a loopback disk device.
int loopback_disk_access_unregister(struct loopback_disk_access *ctx)
Unregister a previously registered loopback disk device.
Disk info.
Definition disk.h:89
File object representing an open file.
Definition fs_interface.h:76
Context object for an active loopback disk device.
Definition loopback_disk.h:16
size_t num_sectors
Definition loopback_disk.h:20
struct disk_info info
Definition loopback_disk.h:17
struct fs_file_t file
Definition loopback_disk.h:19
const char * file_path
Definition loopback_disk.h:18