All of the FDS examples I have seen seem to ignore the fact that fds_record_write() just queues a write, and therefore the data pointed to by p_record.data.p_data needs to not change until the write operation has actually been processed.
How do I know when it is safe to reuse the buffer pointed to by p_record.data.p_data?