<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/dfs/dfs_v2/include/dfs.h, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/dfs/dfs_v2/include/dfs.h?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/dfs/dfs_v2/include/dfs.h?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-08-17T09:15:34Z</updated>
<entry>
<title>Add AF_UNIX sockets implementation (#11681)</title>
<updated>2026-08-17T09:15:34Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2026-08-17T09:15:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=991f0ffca6ca475adcffc7833876bb8151f16e9c'/>
<id>urn:sha1:991f0ffca6ca475adcffc7833876bb8151f16e9c</id>
<content type='text'>
* components/dfs: support unix socket nodes

AF_UNIX pathname binding and descriptor passing require DFSv2 socket
nodes and retained open file descriptions across fd tables.

Add socket-node creation for tmpfs and devtmpfs, fd reference helpers,
and socket F_SETFL forwarding.

Impact: DFSv2 socket nodes and descriptor reference handling.
Validation: git diff --cached --check.

* components/net/sal: support local protocol providers

Local IPC protocol families do not have a backing network device.
Store the selected provider in each SAL socket and add a local provider
registry while preserving netdev checks for Internet sockets.

Handle DFSv2 close semantics, socketpair flags, and MSG_CTRUNC for
AF_UNIX integration.

Impact: SAL protocol dispatch for all socket families.
Validation: git diff --cached --check.

* components/lwp: support unix socket messages

Musl AF_UNIX addresses and ancillary data require explicit ABI and
user-memory conversion at the LWP syscall boundary.

Add the musl msghdr layout, bounded address and message copying,
control-message level conversion, and MSG_CTRUNC translation. Correct
receive buffer allocation and copy lengths while handling messages.

Impact: LWP socket syscalls when SAL is enabled.
Validation: git diff --cached --check.

* components/net/af_unix: add local sockets

Add an opt-in AF_UNIX provider for pathname-based local IPC without
a synthetic network device.

Support datagram and stream sockets, blocking and nonblocking I/O,
timeouts, poll, socketpair, and SCM_RIGHTS descriptor passing. Include
bounded Kconfig settings, component documentation, and utest coverage.

Impact: enabled only by RT_USING_AF_UNIX and requires SAL POSIX with
DFSv2.
Validation: git diff --cached --check.

* Fix AF_UNIX CI checks

Apply the repository clang-format rules to the affected source lines.
Suppress the cppcheck false positive for the devtmpfs list iterator.

No functional behavior is changed.

* components/lwp: preserve NULL optional msghdr buffers

When msg_name or msg_control is NULL, keep the kernel pointer NULL
instead of substituting an uninitialized buffer. Reject a NULL control
buffer with a nonzero length as EFAULT.

Impact: LWP sendmsg/recvmsg conversion on MMU targets.
Validation: git diff --cached --check.

* components/net/af_unix: fix poll UAF, namespace leak, and SCM_RIGHTS cycles

Poll only the local wait queue and wake writers from the receiver.
Free namespace entries on detach, and reject AF_UNIX descriptors in
SCM_RIGHTS until cycle collection exists.

Impact: AF_UNIX poll, bind lifetime, and descriptor passing.
Validation: git diff --cached --check.

* components/dfs: add DFSv2 AF_UNIX utest suite

Add opt-in tests under dfs/utest/v2/af_unix for socket nodes, IPC,
poll peer-close, namespace cleanup, and SCM_RIGHTS rejection.

Sources are built only when RT_UTEST_TC_USING_DFS_V2_AF_UNIX and the
selected test groups are enabled.

Impact: DFS utest menu and build; no production AF_UNIX behavior change.
Validation: git diff --cached --check.</content>
</entry>
<entry>
<title>[dfs]mmap的文件在关闭后释放file指针 (#9917)</title>
<updated>2025-02-09T07:55:30Z</updated>
<author>
<name>heyuanjie87</name>
<email>943313837@qq.com</email>
</author>
<published>2025-02-09T07:55:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d3d33ff9835c6230152b8f8b6ceb30dbc93666e1'/>
<id>urn:sha1:d3d33ff9835c6230152b8f8b6ceb30dbc93666e1</id>
<content type='text'>
* [dfs]mmap的文件在关闭后释放file指针</content>
</entry>
<entry>
<title>sync smart &amp; dfs (#8672)</title>
<updated>2024-03-28T15:42:56Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-03-28T15:42:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=83e95bdff4c48c661b50e1eec56d5fd293b28fbb'/>
<id>urn:sha1:83e95bdff4c48c661b50e1eec56d5fd293b28fbb</id>
<content type='text'>
Signed-off-by: xqyjlj &lt;xqyjlj@126.com&gt;
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: xqyjlj &lt;xqyjlj@126.com&gt;</content>
</entry>
<entry>
<title>dfsv2 code tidy. (#8374)</title>
<updated>2023-12-16T10:06:47Z</updated>
<author>
<name>geniusgogo</name>
<email>2041245+geniusgogo@users.noreply.github.com</email>
</author>
<published>2023-12-16T10:06:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6b22a0a2b7ed79cd2f64875bb7bcfd04b47d869f'/>
<id>urn:sha1:6b22a0a2b7ed79cd2f64875bb7bcfd04b47d869f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sync update dfs v2. (#8336)</title>
<updated>2023-12-12T10:05:39Z</updated>
<author>
<name>geniusgogo</name>
<email>2041245+geniusgogo@users.noreply.github.com</email>
</author>
<published>2023-12-12T10:05:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=304ce5919c01bb0a04a7b0b6e0ecb39ed0b13c24'/>
<id>urn:sha1:304ce5919c01bb0a04a7b0b6e0ecb39ed0b13c24</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix dfs path name overflow. (#8305)</title>
<updated>2023-11-28T09:16:21Z</updated>
<author>
<name>geniusgogo</name>
<email>2041245+geniusgogo@users.noreply.github.com</email>
</author>
<published>2023-11-28T09:16:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=74925f43eda4b09bfd26c38beaf366481d784505'/>
<id>urn:sha1:74925f43eda4b09bfd26c38beaf366481d784505</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add sys_utimensat (#8124)</title>
<updated>2023-10-13T11:21:49Z</updated>
<author>
<name>xiao-mang</name>
<email>53597406+xiao-mang@users.noreply.github.com</email>
</author>
<published>2023-10-13T11:21:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5d16042765ac989cab9bb4e9b112f1a98e17f4d5'/>
<id>urn:sha1:5d16042765ac989cab9bb4e9b112f1a98e17f4d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[dfs] Add DFS v2.0 (#7606)</title>
<updated>2023-06-10T13:35:25Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2023-06-10T13:35:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=99e80f8d3311a5222a028165f9d708870a3bb301'/>
<id>urn:sha1:99e80f8d3311a5222a028165f9d708870a3bb301</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[DFS] prepare for dfs_v2.0 (#7200)</title>
<updated>2023-04-08T14:25:51Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2023-04-08T14:25:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9600b75b55dace1c4efef8551059df3d673b21ad'/>
<id>urn:sha1:9600b75b55dace1c4efef8551059df3d673b21ad</id>
<content type='text'>
* [DFS] prepare for dfs_v2. dfs_fd -&gt; dfs_file; dfs_fnode -&gt; dfs_vnode.

* [BSP] fix code analysis warning

* [smart] fix the pointer overflow.

* code format

* [smart] fix the lwp-&gt;lwp_obj checking.</content>
</entry>
<entry>
<title>[DFS] add Kconfig for dfs-v2.0 (#7156)</title>
<updated>2023-04-04T07:02:56Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2023-04-04T07:02:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=23955edf53422c20127ef0138b889016a1ba2341'/>
<id>urn:sha1:23955edf53422c20127ef0138b889016a1ba2341</id>
<content type='text'>
* [DFS] add Kconfig for dfs-v2.0

* [DFS] Optimize the SConscript.

* [dfs] move old dfs to dfs/dfs_v1</content>
</entry>
</feed>
