def METHOD_NAME(self):
    if self.addr is None or self.digit is None or self.mask is None:
        raise ValueError(
            "Not Enough Attr: addr: {}, digit: {}, mask: {}".format(
                self.addr, self.digit, self.mask
            )
        )
    ret, val = osutil.getdevmem(self.addr, self.digit, self.mask)
    if not ret:
        raise IOError(val)
    return val