Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルに書き込むために aio_write に渡されたバッファを変更または解放しても安全ですか。または、操作が完了するまで待つ必要がありますか? 関数はすべてのバッファ コンテンツをキューにコピーしますか、それともデータへの参照のみをコピーしますか?
からman 7 aio:
man 7 aio
I/O 操作の進行中は、制御ブロック バッファーと が指すバッファーをaio_buf変更してはなりません。これらのバッファは、I/O 操作が完了するまで有効である必要があります。
aio_buf
したがって、操作が完了したという通知を受けるまで、構造物に触れてはなりません。