c
  if (dev == NULL || attr == NULL) {
      return -EINVAL;  // Return an error code indicating invalid input
  }
  