get-file-buffer

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

(get-file-buffer FILENAME)

Return the buffer visiting file FILENAME (a string).
The buffer's `buffer-file-name' must match exactly the expansion of FILENAME.
If there is no such live buffer, return nil.
See also `find-buffer-visiting'.