Repository navigation
Document the boottime calls #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e832bca
Document the boottime calls
nicholasberlin adbdacf
Document thread-safety of the boottime calls
nicholasberlin 6d114fa
Document wallclock translation on QQ_MONOTONIC queues
nicholasberlin b639b7b
Contrast slewing with steps in quark_time_to_wallclock(3)
nicholasberlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8"/> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
| <link rel="stylesheet" href="mandoc.css" type="text/css" media="all"/> | ||
| <title>QUARK_GET_BOOTTIME(3)</title> | ||
| </head> | ||
| <body> | ||
| <table class="head"> | ||
| <tr> | ||
| <td class="head-ltitle">QUARK_GET_BOOTTIME(3)</td> | ||
| <td class="head-vol">Library Functions Manual</td> | ||
| <td class="head-rtitle">QUARK_GET_BOOTTIME(3)</td> | ||
| </tr> | ||
| </table> | ||
| <div class="manual-text"> | ||
| <section class="Sh"> | ||
| <h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> | ||
| <p class="Pp"><code class="Nm">quark_get_boottime</code> — | ||
| <span class="Nd">get the boottime epoch used for wallclock | ||
| translation</span></p> | ||
| </section> | ||
| <section class="Sh"> | ||
| <h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> | ||
| <p class="Pp"><code class="In">#include | ||
| <<a class="In">quark.h</a>></code></p> | ||
| <p class="Pp"><var class="Ft">u64</var> | ||
| <br/> | ||
| <code class="Fn">quark_get_boottime</code>(<var class="Fa" style="white-space: nowrap;">void</var>);</p> | ||
| </section> | ||
| <h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> | ||
| <code class="Nm">quark_get_boottime</code> returns the internal boottime epoch: | ||
| the wallclock time of boot in nanoseconds since the Unix epoch, as fetched | ||
| from the btime field of <span class="Pa">/proc/stat</span>. btime has a | ||
| resolution of one second. | ||
| <p class="Pp">The epoch is fetched when the first queue is opened and refetched | ||
| only by | ||
| <a class="Xr" href="quark_update_boottime.3.html">quark_update_boottime(3)</a>. | ||
| It is what | ||
| <a class="Xr" href="quark_time_to_wallclock.3.html">quark_time_to_wallclock(3)</a> | ||
| adds to a time since boot, exposed for users that prefer to do the | ||
| translation themselves.</p> | ||
| <section class="Sh"> | ||
| <h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN | ||
| VALUES</a></h1> | ||
| <p class="Pp">The boottime epoch in nanoseconds since the Unix epoch, zero if a | ||
| queue was never opened.</p> | ||
| </section> | ||
| <section class="Sh"> | ||
| <h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE | ||
| ALSO</a></h1> | ||
| <p class="Pp"><a class="Xr" href="quark_event_dump.3.html">quark_event_dump(3)</a>, | ||
| <a class="Xr" href="quark_process_iter.3.html">quark_process_iter(3)</a>, | ||
| <a class="Xr" href="quark_process_lookup.3.html">quark_process_lookup(3)</a>, | ||
| <a class="Xr" href="quark_queue_block.3.html">quark_queue_block(3)</a>, | ||
| <a class="Xr" href="quark_queue_close.3.html">quark_queue_close(3)</a>, | ||
| <a class="Xr" href="quark_queue_default_attr.3.html">quark_queue_default_attr(3)</a>, | ||
| <a class="Xr" href="quark_queue_get_epollfd.3.html">quark_queue_get_epollfd(3)</a>, | ||
| <a class="Xr" href="quark_queue_get_event.3.html">quark_queue_get_event(3)</a>, | ||
| <a class="Xr" href="quark_queue_get_stats.3.html">quark_queue_get_stats(3)</a>, | ||
| <a class="Xr" href="quark_queue_open.3.html">quark_queue_open(3)</a>, | ||
| <a class="Xr" href="quark_time_to_wallclock.3.html">quark_time_to_wallclock(3)</a>, | ||
| <a class="Xr" href="quark_update_boottime.3.html">quark_update_boottime(3)</a>, | ||
| <a class="Xr" href="quark.7.html">quark(7)</a>, | ||
| <a class="Xr" href="quark-btf.8.html">quark-btf(8)</a>, | ||
| <a class="Xr" href="quark-mon.8.html">quark-mon(8)</a>, | ||
| <a class="Xr" href="quark-test.8.html">quark-test(8)</a></p> | ||
| </section> | ||
| <section class="Sh"> | ||
| <h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1> | ||
| <p class="Pp"><code class="Nm">quark_get_boottime</code> appeared in quark 0.8, | ||
| when all times handed out by quark switched from nanoseconds since the Unix | ||
| epoch to nanoseconds since boot.</p> | ||
| </section> | ||
| </div> | ||
| <table class="foot"> | ||
| <tr> | ||
| <td class="foot-date">August 5, 2026</td> | ||
| <td class="foot-os">Linux</td> | ||
| </tr> | ||
| </table> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.