Re: Right way to start a lightweight kernel thread without copying open file descriptors?

2022-01-30 Thread Xiang Xiao
It's better to let kernel thread skip the duplication of caller's file handler, here is the patch: https://github.com/apache/incubator-nuttx/pull/5379 Michael, could you try it? On Mon, Jan 31, 2022 at 12:59 AM Michael Jung wrote: > Hi Xiang, Hi Matthew, > > Thanks for your responses. > > Matth

Re: Right way to start a lightweight kernel thread without copying open file descriptors?

2022-01-30 Thread Michael Jung
Hi Xiang, Hi Matthew, Thanks for your responses. Matthew wrote: > Creating a kernel thread in an ioctl "lower-half" would probably cause the file descriptors from the calling task to get copied. Yes, that is exactly what is happening. The started kernel thread actively polls for an event to hap

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-30 Thread Kalbus, Peter
Hi, are you only interested in the simulation or also have a real target in mind? Maybe you can try to get it working for your real target instead of the simulation. The simulation is definitely not working overall on M1 based host systems yet. I‘m using RP2040 based targets and they are work

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-30 Thread Flavio de Castro Alves Filho
That’s what I did. So it is not the problem. > On 29 Jan 2022, at 19:43, Peter Kalbus wrote: > > Hi Flavio, > > there’s an explanation in NuttX documentation: > https://nuttx.apache.org/docs/latest/quickstart/install.html#kconfig-frontend >