<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/lwp/lwp_pid.c, branch riscv64</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_pid.c?h=riscv64</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/lwp/lwp_pid.c?h=riscv64'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-05-31T09:30:46Z</updated>
<entry>
<title>[lwp]list_process can print tid (#8991)</title>
<updated>2024-05-31T09:30:46Z</updated>
<author>
<name>rcitachi</name>
<email>yearsince@yeah.net</email>
</author>
<published>2024-05-31T09:30:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=85b428df429483676d808e82ea9c0c535057f6a0'/>
<id>urn:sha1:85b428df429483676d808e82ea9c0c535057f6a0</id>
<content type='text'>
* list_process can print tid

* fix-ci

* update list_process

* Update lwp_pid.c</content>
</entry>
<entry>
<title>[smart] update sched_setaffinity() to use thread(task) ID (#9004)</title>
<updated>2024-05-28T22:53:22Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-28T22:53:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f179ce12b71c01a5fba3b79f00e245178f482483'/>
<id>urn:sha1:f179ce12b71c01a5fba3b79f00e245178f482483</id>
<content type='text'>
Correct `sched_setaffinity()` to use the thread IDs (TIDs) instead of
process IDs (PIDs). The previous implementation used PIDs, which
caused issues since affinity settings need to be applied at the
thread level.

As the manual documented, the signature is:

&gt;        int sched_setaffinity(pid_t pid, size_t cpusetsize,
&gt;                             const cpu_set_t *mask);

Yes, it's tricky, the identification passing in is called **'PID'**.
But when we talk about 'pid' from GNU libc, it's the **'task-id'**,
aka, `thread-&gt;tid` known in kernel.

Changes were made by updating the function signatures and logic in
`lwp.h`, `lwp_pid.c`, and `lwp_syscall.c` to accept TIDs. Specifically,
the `lwp_setaffinity` function and related internal functions now
operate using thread IDs and adjust thread affinity settings accordingly

Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>[quality] fixup compiler warning (#8961)</title>
<updated>2024-05-21T11:47:42Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-21T11:47:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6b12bce22fc6faaf1c3c9d06583e5679540df7ca'/>
<id>urn:sha1:6b12bce22fc6faaf1c3c9d06583e5679540df7ca</id>
<content type='text'>
Signed-off-by: Shell &lt;smokewood@qq.com&gt;</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>🎯 Sync smart &amp; scheduler codes (#8537)</title>
<updated>2024-02-23T09:49:15Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-02-23T09:49:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=71560bafb5735220696ca24a42ba4a668b55949b'/>
<id>urn:sha1:71560bafb5735220696ca24a42ba4a668b55949b</id>
<content type='text'>
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: xqyjlj &lt;xqyjlj@126.com&gt;</content>
</entry>
<entry>
<title>✨ feat: fix pid recycling (#8225)</title>
<updated>2023-11-06T05:22:27Z</updated>
<author>
<name>xqyjlj</name>
<email>xqyjlj@126.com</email>
</author>
<published>2023-11-06T05:22:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=fa9b496b2ad33d05871a0691b4a1bbc479b28dde'/>
<id>urn:sha1:fa9b496b2ad33d05871a0691b4a1bbc479b28dde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>🐞 fix: fix taskset (#8211)</title>
<updated>2023-11-02T15:12:44Z</updated>
<author>
<name>xqyjlj</name>
<email>xqyjlj@126.com</email>
</author>
<published>2023-11-02T15:12:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5ad6a6f2c59737b54f41b79b6d1e0d6a9ba08da1'/>
<id>urn:sha1:5ad6a6f2c59737b54f41b79b6d1e0d6a9ba08da1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[smart] fixup of lwp recycling and mm varea (#8206)</title>
<updated>2023-11-02T12:23:11Z</updated>
<author>
<name>Shell</name>
<email>wangxiaoyao@rt-thread.com</email>
</author>
<published>2023-11-02T12:23:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c2036e769ae5a16931e40f834cc0687342dc89ce'/>
<id>urn:sha1:c2036e769ae5a16931e40f834cc0687342dc89ce</id>
<content type='text'>
Signed-off-by: shell &lt;wangxiaoyao@rt-thread.com&gt;
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: xqyjlj &lt;xqyjlj@126.com&gt;</content>
</entry>
<entry>
<title>🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)</title>
<updated>2023-10-25T12:31:25Z</updated>
<author>
<name>xqyjlj</name>
<email>xqyjlj@126.com</email>
</author>
<published>2023-10-25T12:31:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3283f54c7a0444b2e51ec79a4da57e7871528f05'/>
<id>urn:sha1:3283f54c7a0444b2e51ec79a4da57e7871528f05</id>
<content type='text'>
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>Sync dfs lwp (#8123)</title>
<updated>2023-10-17T05:07:59Z</updated>
<author>
<name>geniusgogo</name>
<email>2041245+geniusgogo@users.noreply.github.com</email>
</author>
<published>2023-10-17T05:07:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ecd29fda6005ef19c625f194f9311259ba907a78'/>
<id>urn:sha1:ecd29fda6005ef19c625f194f9311259ba907a78</id>
<content type='text'>
</content>
</entry>
</feed>
