With D57362 mmap is much easier and efficient to handle using kqueue, so mmap.c is change to reflect that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
In previous patch I acidently included kernel and map page patch, so this is a clean one.
| share/examples/sound/mmap.c | ||
|---|---|---|
| 175 | If ptr is out of bounds, it's a bug and we should bail out. Same goes for frame_size, which is sample_size * channels. If ptr is not multiple of frame_size, that means we're somewhere in the middle of the frame or even worse, middle of a sample. That's also a bug and we should bail out. | |