mirror of
https://github.com/apache/nuttx.git
synced 2026-03-24 23:54:24 +08:00
Add handling for the FIONREAD ioctl in noteram_ioctl to return the number of unread bytes in the circular note buffer (noteram_unread_length()). Validate the argument pointer and return -EINVAL if it is NULL. Signed-off-by: yukangzhi <yukangzhi@xiaomi.com>