(1) In the microscopic sense, it pertains to the framework of rock. It refers to that rock material (called matrix by some log analysts) which creates the load-bearing structure. The interstices and other voids in the structure constitute porosity.
(2) In the megascopic sense, it pertains to large visible features of rock.