get-buffer-process

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

(get-buffer-process BUFFER)

Return the (or a) process associated with BUFFER.
BUFFER may be a buffer or the name of one.