Use of strtok() in dpdk code
Isaac Boukris
iboukris at gmail.com
Tue Oct 22 14:27:05 CEST 2024
Hi
On Tue, Oct 22, 2024 at 9:51 AM fengchengwen <fengchengwen at huawei.com> wrote:
>
> DPDK is just a SDK, it's not an application (although DPDK provided simple examples).
> Many code will developped based on DPDK, we can't predict how it was implemented.
> So there maybe a DPDK thread and a application thread both invoke strtok().
I think even dpdk threads such as the telemetry ones might invoke (the
same) strtok() at the same time.
> From this point of view, I hope that DPDK solves some of the reentrant problems of
> such C functions (e.g. strtok()\strerror()).
>
> Actually, we've try to solve before, but unfortunately it wasn't merged.
> 1\ strtok(): https://inbox.dpdk.org/dev/20231114110006.91148-1-haijie1@huawei.com/T/#u
> 2\ strerror(): https://inbox.dpdk.org/dev/20231114123552.398072-1-huangdengdui@huawei.com/T/#u
+1
More information about the dev
mailing list