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

(buffer-list &optional FRAME)

Return a list of all existing live buffers.
If the optional arg FRAME is a frame, we return the buffer list in the
proper order for that frame: the buffers show in FRAME come first,
followed by the rest of the buffers.