buffer-file-name

buffer-file-name is a built-in function in `C source code'.

(buffer-file-name &optional BUFFER)

Return name of file BUFFER is visiting, or nil if none.
No argument or nil as argument means use the current buffer.