ContentDocumentLink. Represents the link between a Salesforce CRM Content document or Salesforce file and where it’s shared. A file can be shared with other users, groups, records, and Salesforce CRM Content libraries.
ContentDocumentLink is the object which is the mediator between the document and the owner of the document, it tells about which document is associated with which document through LinkedEntityId.