devif_callback_alloc() not releasing callback structure?

2021-05-14 Thread Вадим Ястребов
Hello everyone!   I am still working on implementing 2 PHYs on IMXRT1064 and currently using netpkt example for transmitting the simplest packets.   Here is my problem:   Have 2 Ethernet interfaces (eth0 and eth1). eth0 is UP, eth1 is DOWN. Transmitting through eth1 results in packets coming out

Re: fwrite line buffering

2021-05-14 Thread Jernej Turnsek
Hi Alan, "\n" does not explicitly force the flush. I have configured the line buffering which is actually working on printf and fputs, but not on fwrite. I am using some application code that is running ok on Linux, but on Nuttx it is not flushing properly. It flush only when the buffer is filled.

Re: fwrite line buffering

2021-05-14 Thread Johnny Billquist
I think his point was that it was implicitly flushed at every write, and not being buffered, but I might have misunderstood. Anyway, I wouldn't expect fwrite to buffer on a per-line basis. fwrite is basically there for doing binary I/O. If you want something buffered, line oriented and user fr

Re: fwrite line buffering

2021-05-14 Thread Alan Carvalho de Assis
Hi Jernej, Please define "not working"! :-) Are you flushing it? Also "\n" at end of line forces it to be flushed. BR, Alan On Friday, May 14, 2021, Jernej Turnsek wrote: > Hi all, > > while working with stdout fwrite function, I have noticed that line > buffering is not working. Is this by

fwrite line buffering

2021-05-14 Thread Jernej Turnsek
Hi all, while working with stdout fwrite function, I have noticed that line buffering is not working. Is this by design or it is a bug? Regards, Jernej