Page MenuHomeFreeBSD

kqueue(9): add EXAMPLES section
Needs ReviewPublic

Authored by meka_tilda.center on Oct 21 2025, 4:43 PM.
Tags
Referenced Files
Unknown Object (File)
Tue, Nov 18, 5:32 PM
Unknown Object (File)
Sat, Nov 8, 7:12 AM
Unknown Object (File)
Sun, Oct 26, 8:10 AM
Unknown Object (File)
Sun, Oct 26, 1:32 AM
Unknown Object (File)
Sat, Oct 25, 7:08 PM
Unknown Object (File)
Oct 25 2025, 12:46 PM
Unknown Object (File)
Oct 22 2025, 6:53 AM
Unknown Object (File)
Oct 22 2025, 1:14 AM
Subscribers

Details

Summary

While researching kernel side of kqueue, I had hard time figuring out what needs to be done to add support for kqueue, so I wrote down info I figured while reading cuse implementation of kqueue and trying to add kqueue to sound(4).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This is awesome! Initial thoughts, my laptops broken X.X

share/man/man9/kqueue.9
421

You don't need an initial Pp

423

New sentences have to start on a new line

This text does not fit the concise and reference style of usual man pages.

I suggest you to instead either convert it to the article in the doc/ repository, or (the location I prefer) to a section in the developers handbook. It really fits there, and probably would be worth expanding to give complete driver module.

In D53244#1217992, @kib wrote:

This text does not fit the concise and reference style of usual man pages.

I suggest you to instead either convert it to the article in the doc/ repository, or (the location I prefer) to a section in the developers handbook. It really fits there, and probably would be worth expanding to give complete driver module.

Seconding this.

In D53244#1217992, @kib wrote:

This text does not fit the concise and reference style of usual man pages.

I suggest you to instead either convert it to the article in the doc/ repository, or (the location I prefer) to a section in the developers handbook. It really fits there, and probably would be worth expanding to give complete driver module.

A complementary option would be to add a complete example kernel module to share/examples/kld. The man page can point to it.