# which errno should I use

- From: Ralph Blach \<hidden\>
- Date: 2001-01-30 16:52:51 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2001/01/9375163
- Thread: https://ratatoskr.run/linuxppc-dev/2001/01/9375163/t.md

```text
I am writing a character device driver.  I want this device driver to
return an error if the user request less than say 1024 byte of data.
What errno should I use?  Is it legal to return an error if not enouth
bytes are requested?

Thanks

Chip
```

## Attachments

- [rcblach.vcf](https://ratatoskr.run/linuxppc-dev/2001/01/9375163/attachment/0) (text/x-vcard, 247 bytes)
