def lookup_vendor_name(self, vendor_id):
        """
        Lookup the name of a given vendor.

        :param vendor_id:
            PCI vendor identifier
        :ptype vendor_id:
            int
        :returns:
            Name of the PCI vendor.

        .. note::
            Lookup respects various flag properties that impact the behavior
            in case the name cannot be found in the local database. Refer to
            the documentation of each of the ``flag_`` properties.
        """
        buf = ctypes.create_string_buffer(1024)
        _logger.debug("Performing the lookup on vendor %#06x", vendor_id)
        flags = self._flags | pci_lookup_mode.PCI_LOOKUP_VENDOR
        pci_lookup_name1(self._access, buf, ctypes.sizeof(buf), flags,
                         vendor_id)
        return buf.value.decode("utf-8")