Can someone please advise me on how to write data to a file in RTLinux.

I am looking at open() and filp_open(). Not sure about the last function.

Thanks