Sorry, I did not catch your idea.
I can create file, write data, close it and pass file path to input_SlaveSourceAdd(..., "file:///path", ...) and it works.
But: open file, write data, get fd and call input_SlaveSourceAdd(..., "fd:///<fd-string>", ...) does not work.