minibufferp

minibufferp is a built-in function in `C source code'.

(minibufferp &optional BUFFER)

Return t if BUFFER is a minibuffer.
No argument or nil as argument means use current buffer as BUFFER.
BUFFER can be a buffer or a buffer name.