Home
last modified time | relevance | path

Searched +full:- +full:- +full:file (Results 1 – 25 of 1091) sorted by relevance

12345678910>>...44

/Zephyr-latest/scripts/utils/
Dgen_util_macros.py3 - Z_LISTIFY
4 - Z_UTIL_INC
5 - Z_UTIL_DEC
6 - Z_UTIL_X2
7 - Z_IS_EQ
15 python $ZEPHYR_BASE/scripts/utils/gen_util_macros.py -l 4095
18 SPDX-License-Identifier: Apache-2.0
23 def write_hidden_start(file): argument
24 file.write("/**\n")
25 file.write(" * @cond INTERNAL_HIDDEN\n")
[all …]
/Zephyr-latest/include/zephyr/fs/
Dfs.h3 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
21 * @brief File System APIs
22 * @defgroup file_system_api File System APIs
34 /** Identifier for file entry */
40 /** @brief Enumeration to uniquely identify file system types.
42 * Zephyr supports in-tree file systems and external ones. Each
43 * requires a unique identifier used to register the file system
44 * implementation and to associate a mount point with the file system
46 * in-tree file systems.
[all …]
/Zephyr-latest/subsys/fs/
DKconfig3 # SPDX-License-Identifier: Apache-2.0
5 menu "File Systems"
8 bool "Link file system libraries into build"
10 Link in the underlying file system libraries. This can be
12 to work directly with the underlying file system libraries.
18 bool "File system support"
21 Enables support for file system.
26 int "Maximum number of distinct file system types allowed"
29 Zephyr provides several file system types including FatFS and
34 int "Optional override for maximum file name length"
[all …]
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_dirops.c4 * SPDX-License-Identifier: Apache-2.0
18 struct fs_file_t file; in ZTEST() local
21 fs_file_t_init(&file); in ZTEST()
28 zassert_equal(fs_open(&file, "/sml/file1", FS_O_CREATE), 0, "Create file1 failed"); in ZTEST()
29 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
30 zassert_equal(fs_open(&file, "/sml/dir1/file2", FS_O_CREATE), 0, "Create file2 failed"); in ZTEST()
31 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
32 zassert_equal(fs_open(&file, "/sml/dir2/file3", FS_O_CREATE), 0, "Create file3 failed"); in ZTEST()
33 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
36 zassert_equal(fs_open(&file, "/sml/dir1", 0), -EINVAL, "Should return error"); in ZTEST()
[all …]
/Zephyr-latest/scripts/
Dwest-commands.yml2 west-commands:
3 - file: scripts/west_commands/completion.py
5 - name: completion
8 - file: scripts/west_commands/boards.py
10 - name: boards
13 - file: scripts/west_commands/shields.py
15 - name: shields
18 - file: scripts/west_commands/build.py
20 - name: build
23 - file: scripts/west_commands/twister_cmd.py
[all …]
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_file.c4 * SPDX-License-Identifier: Apache-2.0
13 int file = -1; variable
21 TC_ERROR("Failed opening file: %d, errno=%d\n", res, errno); in test_file_open()
26 file = res; in test_file_open()
36 res = lseek(file, 0, SEEK_SET); in test_file_write()
39 close(file); in test_file_write()
40 file = -1; in test_file_write()
44 brw = write(file, (char *)test_str, strlen(test_str)); in test_file_write()
46 TC_PRINT("Failed writing to file [%d]\n", (int)brw); in test_file_write()
47 close(file); in test_file_write()
[all …]
/Zephyr-latest/doc/hardware/porting/
Dsoc_porting.rst18 - SoC: the exact system on a chip the board's CPU is part of.
19 - SoC series: a group of tightly related SoCs.
20 - SoC family: a wider group of SoCs with similar characteristics.
21 - CPU Cluster: a cluster of one or more CPU cores.
22 - CPU core: a particular CPU instance of a given architecture.
23 - Architecture: an instruction set architecture.
39 in Zephyr, for example ``./scripts/list_hardware.py --soc-root=. --socs`` from
48 structure under ``<your-repo>/soc`` is permitted.
50 :zephyr_file:`dts/bindings/vendor-prefixes.txt`. If the SoC vendor does not
57 organized in sub-folders in a common SoC Family or SoC Series tree.
[all …]
/Zephyr-latest/doc/develop/west/
Dbasics.rst1 .. _west-basics:
9 West's built-in commands allow you to work with :term:`projects <west project>`
22 :file:`zephyrproject` as well as all its subfolders, looks like this:
24 .. code-block:: none
28 │ └── config # per-workspace local configuration file
32 │ ├── west.yml # manifest file
40 │ └── net-tools/ # .git/ project
43 .. _west-workspace:
49 Additional details are in :ref:`west-workspaces`.
52 Above, :file:`zephyrproject` is the name of the workspace's top level
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/
DKconfig2 # Copyright Nordic Semiconductor ASA 2020-2023. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 # The Kconfig file is dedicated to File System management group of
9 # Options defined in this file should be prefixed:
10 # MCUMGR_GRP_FS_ -- general group options;
16 bool "MCUmgr handlers for file management"
20 Enables MCUmgr handlers for file management
23 file system, including application-stored secrets like
27 callbacks when file access is attempted, which they can then filter,
33 prompt "Maximum file size that could be uploaded/downloaded"
[all …]
/Zephyr-latest/doc/services/file_system/
Dindex.rst3 File Systems
7 file systems at different mount points (e.g., ``/fatfs`` and ``/lfs``). The
9 to instantiate, mount, and operate on a file system. The File system Switch
10 decouples the applications from directly accessing an individual file system's
11 specific API or internal functions by introducing file system registration
14 In Zephyr, any file system implementation or library can be plugged into or
15 pulled out through a file system registration API. Each file system
17 :c:enumerator:`FS_TYPE_EXTERNAL_BASE` to avoid clashes with in-tree identifiers.
19 .. code-block:: c
25 Zephyr RTOS supports multiple instances of a file system by making use of
[all …]
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_basic.c5 * SPDX-License-Identifier: Apache-2.0
18 * File system should be mounted before tests are started.
25 struct fs_file_t file; in create_write_hello() local
27 fs_file_t_init(&file); in create_write_hello()
28 TC_PRINT("creating and writing file\n"); in create_write_hello()
30 zassert_equal(fs_open(&file, in create_write_hello()
45 "stat new hello not file"); in create_write_hello()
50 zassert_equal(testfs_write_incrementing(&file, 0, TESTFS_BUFFER_SIZE), in create_write_hello()
59 "stat written hello not file"); in create_write_hello()
63 if (mp->type == FS_LITTLEFS) { in create_write_hello()
[all …]
/Zephyr-latest/doc/build/snippets/
Dwriting.rst10 Snippets are defined using YAML files named :file:`snippet.yml`.
12 A :file:`snippet.yml` file contains the name of the snippet, along with
15 .. code-block:: yaml
17 name: snippet-name
20 Build system settings go in other keys in the file as described later on in
24 you can combine a snippet-specific devicetree overlay and a ``.conf`` file like
27 .. code-block:: yaml
36 .. code-block:: yaml
47 ``snippet-<name>`` as a namespace prefix when choosing names for node labels,
50 For example, if your snippet is named ``foo-bar``, write your devicetree
[all …]
/Zephyr-latest/subsys/logging/backends/
DKconfig.fs2 # SPDX-License-Identifier: Apache-2.0
5 bool "File system backend"
9 When enabled, backend is using the configured file system to output logs.
10 As the file system must be mounted for the logging to work, it must be
11 either configured for auto-mount or manually mounted by the application.
12 Log messages are discarded as long as the file system is not mounted.
17 backend-str = fs
24 When enabled automatically start the file system backend on
35 bool "Append to the newest log file"
38 When enabled and when there is space left in the newest log file,
[all …]
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_pdu.c5 * SPDX-License-Identifier: Apache-2.0
47 zassert_mem_equal(_s._f, _p->_f, sizeof(_p->_f), _t "\nCalled at %s:%d\n", file, line);
51 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_ping_req()
52 pdu->len = offsetof(struct pdu_data_llctrl, ping_req) + in helper_pdu_encode_ping_req()
54 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in helper_pdu_encode_ping_req()
59 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_ping_rsp()
60 pdu->len = offsetof(struct pdu_data_llctrl, ping_rsp) + in helper_pdu_encode_ping_rsp()
62 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in helper_pdu_encode_ping_rsp()
69 pdu->ll_id = PDU_DATA_LLID_CTRL; in helper_pdu_encode_feature_req()
70 pdu->len = offsetof(struct pdu_data_llctrl, feature_req) + in helper_pdu_encode_feature_req()
[all …]
/Zephyr-latest/cmake/
Dcfb.cmake1 # SPDX-License-Identifier: Apache-2.0
3 # These functions can be used to generate a CFB font include file from
4 # a TrueType/OpenType font file or an image file.
6 input_file # The TrueType/OpenType font file or the image file
7 output_file # The generated header file
16 --zephyr-base ${ZEPHYR_BASE}
17 --input ${input_file}
18 --output ${output_file}
19 --bindir ${CMAKE_BINARY_DIR}
20 --width ${width}
[all …]
/Zephyr-latest/doc/build/dts/
Dintro-input-output.rst1 .. _devicetree-in-out-files:
7 :ref:`devicetree-scope-purpose` in more detail.
10 :figclass: align-center
14 .. _dt-input-files:
21 - sources (``.dts``)
22 - includes (``.dtsi``)
23 - overlays (``.overlay``)
24 - bindings (``.yaml``)
26 The devicetree files inside the :file:`zephyr` directory look like this:
28 .. code-block:: none
[all …]
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/
Dfs_mgmt.h2 * Copyright (c) 2018-2022 mcumgr authors
4 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
17 * Command IDs for file system management group.
26 * Command result codes for file system management group.
35 /** The specified file name is not valid. */
38 /** The specified file does not exist. */
41 /** The specified file is a directory, not a file. */
44 /** Error occurred whilst attempting to open a file. */
47 /** Error occurred whilst attempting to seek to an offset in a file. */
[all …]
/Zephyr-latest/doc/develop/toolchains/
Dcustom_cmake.rst6 To use a custom toolchain defined in an external CMake file, :ref:`set these
9 - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to your toolchain's name
10 - Set ``TOOLCHAIN_ROOT`` to the path to the directory containing your
14 :file:`TOOLCHAIN_ROOT` directory:
16 - :file:`cmake/toolchain/<toolchain name>/generic.cmake`: configures the
19 :ref:`devicetree` file.
20 - :file:`cmake/toolchain/<toolchain name>/target.cmake`: configures the
28 :file:`generic.cmake` and :file:`target.cmake` files should contain.
33 .. code-block:: console
35 west build ... -- -DZEPHYR_TOOLCHAIN_VARIANT=... -DTOOLCHAIN_ROOT=...
[all …]
/Zephyr-latest/tests/posix/xsi_realtime/src/
Dsync_io.c4 * SPDX-License-Identifier: Apache-2.0
48 zassert_not_equal(res, -1, "Error opening file [%d], errno [%d]", res, errno); in file_open()
52 static int file_write(int file) in file_write() argument
57 res = lseek(file, 0, SEEK_SET); in file_write()
60 brw = write(file, (char *)test_str, strlen(test_str)); in file_write()
61 zassert_ok((int)res, "Failed writing to file [%d]\n", (int)brw); in file_write()
72 * @details Test sync the file through POSIX fsync API.
78 int file = file_open(); in ZTEST() local
80 res = file_write(file); in ZTEST()
81 res = fsync(file); in ZTEST()
[all …]
/Zephyr-latest/dts/bindings/fs/
Dzephyr,fstab-common.yaml2 # SPDX-License-Identifier: Apache-2.0
9 mount-point:
13 The absolute path used as the file system mount point.
18 Mount file system on boot if present.
20 During initialization the file system driver will attempt to mount
23 read-only:
26 Mount file system read-only if present.
29 mount descriptor generated for the file system.
31 no-format:
34 Do not format file system if mount fails.
[all …]
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_file_reentrant.c4 * SPDX-License-Identifier: Apache-2.0
43 /* File open should wait here, as the fs is locked. Therefore, automatic switch back to in test_reentrant_access()
46 TC_PRINT("Open file\n"); in test_reentrant_access()
48 zassert_ok(res, "Err: File could not be opened [%d]\n", res); in test_reentrant_access()
49 TC_PRINT("File opened\n"); in test_reentrant_access()
53 "File open with locked mutex"); in test_reentrant_access()
57 zassert_ok(res, "Error closing file [%d]\n", res); in test_reentrant_access()
59 zassert_ok(res, "Error deleting file [%d]\n", res); in test_reentrant_access()
70 TC_PRINT("\nParallel reentrant-safe file access test:\n"); in test_reentrant_parallel_file_access()
72 TC_PRINT("Open file 1\n"); in test_reentrant_parallel_file_access()
[all …]
/Zephyr-latest/include/zephyr/arch/common/
Dsemihost.h5 * SPDX-License-Identifier: Apache-2.0
8 * https://github.com/ARM-software/abi-aa/blob/main/semihosting/semihosting.rst
10 * RISC-V semihosting also follows these conventions:
11 * https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc
15 * @file
29 * File I/O operations
32 /** Open a file or stream on the host system. */
34 /** Check whether a file is associated with a stream/terminal */
36 /** Write to a file or stream. */
38 /** Read from a file at the current cursor position. */
[all …]
/Zephyr-latest/tests/application_development/gen_inc_file/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
7 FILE(GLOB app_sources src/*.c)
10 # Write the generated file into the include/generated directory, which
13 set(source_file src/file.bin)
15 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.inc)
16 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.partial.inc
17 --offset=100 --length=42)
18 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.gz.inc --gzip)
19 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.mtime.gz.inc
20 --gzip --gzip-mtime=42)
[all …]
/Zephyr-latest/doc/build/kconfig/
Dextensions.rst8 <https://docs.kernel.org/kbuild/kconfig-language.html>`__,
11 - Default values can be applied to existing symbols without
15 .. code-block:: none
26 .. code-block:: none
37 .. code-block:: none
47 - Environment variables in ``source`` statements are expanded directly, meaning
56 <https://docs.kernel.org/kbuild/kconfig-macro-language.html>`__.
60 - The ``source`` statement supports glob patterns and includes each matching
61 file. A pattern is required to match at least one file.
65 .. code-block:: kconfig
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dfifo_mock.py3 # SPDX-License-Identifier: Apache-2.0
20 self.file = None
24 self.logger.info(f'Creating fifo file: {self.filename}')
29 self.logger.error(f'Did not able create fifo file: {self.filename}')
31 self.file = open(self.filename, self.mode, buffering=0)
32 self.logger.info(f'File created: {self.filename}')
39 if self.file:
40 self.file.write(data)
43 if self.file:
44 return self.file.readline()
[all …]

12345678910>>...44