<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/lwp/lwp_syscall.c, branch copilot/create-ai-agent-rules</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/lwp/lwp_syscall.c?h=copilot%2Fcreate-ai-agent-rules</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/lwp/lwp_syscall.c?h=copilot%2Fcreate-ai-agent-rules'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-03-31T02:37:11Z</updated>
<entry>
<title>style: format code with clang-format [skip ci]</title>
<updated>2026-03-31T02:37:11Z</updated>
<author>
<name>Telecaster2147</name>
<email>Telecaster2147+github[bot]@noreply.github.com</email>
</author>
<published>2026-03-26T04:31:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c7122a46b47216a9f0c97096d926fc25addce0ae'/>
<id>urn:sha1:c7122a46b47216a9f0c97096d926fc25addce0ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(lwp): validate thread priority in sched syscalls</title>
<updated>2026-03-31T02:37:11Z</updated>
<author>
<name>AFWEF_147</name>
<email>olm_cse@hust.edu.cn</email>
</author>
<published>2026-03-23T12:09:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7cd7e05ba4179ac3d73fe127c103083a648ae1c4'/>
<id>urn:sha1:7cd7e05ba4179ac3d73fe127c103083a648ae1c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add RT_THREAD_CTRL_SET_PRIORITY</title>
<updated>2025-04-13T07:25:42Z</updated>
<author>
<name>wycwyhwyq</name>
<email>5f20.6d9b@gmail.com</email>
</author>
<published>2025-04-10T02:20:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=12de72a462d79c8d715a8fcd1620460abfa546fb'/>
<id>urn:sha1:12de72a462d79c8d715a8fcd1620460abfa546fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add RT_THREAD_CTRL_SET_PRIORITY</title>
<updated>2025-04-13T07:25:42Z</updated>
<author>
<name>wycwyhwyq</name>
<email>5f20.6d9b@gmail.com</email>
</author>
<published>2025-03-12T10:17:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=da1c5c788279dab423458dafa79a85c29a9e31f6'/>
<id>urn:sha1:da1c5c788279dab423458dafa79a85c29a9e31f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[lwp]add comments for lwp system calls. (#9934)</title>
<updated>2025-02-18T11:51:10Z</updated>
<author>
<name>Guorui Li</name>
<email>liguorui1213@163.com</email>
</author>
<published>2025-02-18T11:51:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6a792c9df20916152eba36c18cc73933ba604d5a'/>
<id>urn:sha1:6a792c9df20916152eba36c18cc73933ba604d5a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[lwp]修正kill(pid &lt; -1)时的返回值错误</title>
<updated>2025-02-08T06:32:20Z</updated>
<author>
<name>heyuanjie87</name>
<email>943313837@qq.com</email>
</author>
<published>2025-01-22T06:26:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6e3c9acd3907baad0fe7669d998b8748709b04f5'/>
<id>urn:sha1:6e3c9acd3907baad0fe7669d998b8748709b04f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: add support for dfs remount functionality</title>
<updated>2025-01-06T11:34:16Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-11-13T07:37:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b63b388d1f9341e97b9e62687271d74c70a40f86'/>
<id>urn:sha1:b63b388d1f9341e97b9e62687271d74c70a40f86</id>
<content type='text'>
This patch introduces a remount feature for the DFS, allowing for the
modification of mount parameters without unmounting the filesystem,
the remount functionality helps modify certain mount flags (like `MS_RDONLY`) without
requiring an unmount, providing more control over mounted filesystems in the system.

The updates is essential for user space init proc to cleanup the runtime
resource, ensuring clean handling of cached data and enhancing system
robustness during power down processing.

Changes:
- Defined new constants for remount flags in `dfs_fs.h`.
- Added the `dfs_remount()` function in `dfs_fs.c` to handle remount operations.
- Introduced a check for unsupported flags and handle error conditions such as invalid paths
  or non-directory targets.
- Updated the `dfs_mnt` structure in `dfs_mnt.h` to include a read-only flag (`MNT_RDONLY`).
- The `dfs_remount()` function allows changing the read-only status of a mounted filesystem.
- Added `MNT_LAZY_UMNT` and `MNT_RDONLY` flags to `dfs_mnt` structure.
- Introduced `dfs_mnt_setflags` function for dynamic flag management.
- Updated `dfs_remount` to utilize `dfs_mnt_setflags` for flag setting.
- Enhanced unmount operations with `dfs_mnt_umount_iter` and lazy unmounting.
- Added `dfs_pcache_clean` to handle cache cleanup for read-only mounts.
- Improved error reporting in `dfs_umount` for better user feedback.
- Refactored `sys_mount` to streamline parameter handling and support remounts.
- Introduced `_cp_from_usr_string` helper for user-space string operations.
- Updated internal APIs to ensure consistency in reference count management.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>feat: add system reboot and process teardown support</title>
<updated>2025-01-06T11:34:16Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-11-12T09:47:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=944f3d05b508d5eaeaabd8f5d2964847c80dbc3e'/>
<id>urn:sha1:944f3d05b508d5eaeaabd8f5d2964847c80dbc3e</id>
<content type='text'>
The patch introduces support for system reboot functionality and process teardown,
allowing for a clean shutdown and unmounting of the root filesystem. This is
necessary for ensuring a proper system shutdown process, especially when dealing
with resource cleanup and ensuring that all processes have exited before system
shutdown.

Changes:
- Added `lwp_teardown()` function to handle process cleanup and system teardown.
- Introduced `lwp_pid_wait_for_empty()` to wait for process ID table emptiness
  before proceeding with shutdown.
- Updated `dfs_mnt_unref()` to trigger callbacks when unmounting a filesystem.
- Added new reboot types (`RB_AUTOBOOT`, `RB_POWER_OFF`) and implemented their
  corresponding actions, including cleanup of processes and unmounting root
  filesystem.
- Extended `sys_reboot()` to handle reboot and power off types with appropriate
  callbacks for process and filesystem teardown.
- Introduced callback mechanism for root filesystem unmount notifications.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>feat: add signal kill all functionality</title>
<updated>2025-01-06T11:34:16Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-11-12T09:35:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=dc3270f14ee0a3902df8103f1c1e485bd0f4629f'/>
<id>urn:sha1:dc3270f14ee0a3902df8103f1c1e485bd0f4629f</id>
<content type='text'>
This change introduces the `lwp_signal_kill_all` function, which allows a
signal to be sent to all processes in the system. The function iterates
over all PIDs and sends the specified signal to each process, except those
that are protected from signals. This enhancement provides a convenient way
to broadcast signals across all processes in the system.

Changes:
- Added `lwp_signal_kill_all` function in `lwp_signal.c` to broadcast a
  signal to all processes by iterating over all PIDs using the existing
  `lwp_pid_for_each` function.
- Introduced a new `kill_all_param` structure to encapsulate the signal
  information needed for killing processes.
- Added internal `_kill_each` helper function for sending the signal to each
  PID.
- Updated `lwp_signal.h` with the new function prototype for `lwp_signal_kill_all`.
- Modified `sys_kill` in `lwp_syscall.c` to call `lwp_signal_kill_all` when
  a process is not specified.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>kernel: cleanup debug APIs</title>
<updated>2024-12-20T22:50:00Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2024-12-20T02:57:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7c7ff6e532598ba6fd8cf95da92b134081a03988'/>
<id>urn:sha1:7c7ff6e532598ba6fd8cf95da92b134081a03988</id>
<content type='text'>
- `dbg_log` is a “NOT RECOMMENDED API”, convert the calling of this
  API to LOG_x and remove this API.

- `dbg_here`/`dbg_enter`/`dbg_exit`: no one use these APIs, remove
  them directly.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
</feed>
