<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Timerfd on Nalar</title>
    <link>https://nalar.dev/id/tags/timerfd/</link>
    <description>Recent content in Timerfd on Nalar</description>
    <generator>Hugo</generator>
    <language>id-id</language>
    <lastBuildDate>Fri, 18 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://nalar.dev/id/tags/timerfd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>timerfd Menghitung Ekspirasi melalui I/O Descriptor</title>
      <link>https://nalar.dev/id/timerfd-menghitung-ekspirasi-melalui-io-descriptor/</link>
      <pubDate>Fri, 18 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/id/timerfd-menghitung-ekspirasi-melalui-io-descriptor/</guid>
      <description>&lt;p&gt;&lt;code&gt;timerfd&lt;/code&gt; periodik tidak memerlukan satu wakeup userspace untuk setiap ekspirasi timer. Jika beberapa ekspirasi terjadi sebelum descriptor dibaca, Linux mengakumulasikannya dan mengembalikan jumlahnya dalam satu integer 8 byte.&lt;/p&gt;&#xA;&lt;p&gt;Perilaku ini menempatkan state timer dalam model readiness yang sama dengan socket, pipe, dan descriptor lain. Event loop yang terlambat juga memperoleh informasi eksplisit tentang periode yang terlewat, alih-alih beberapa ekspirasi dilebur menjadi satu notifikasi.&lt;/p&gt;&#xA;&lt;h2 id=&#34;state-ekspirasi-menjadi-data-descriptor-yang-dapat-dibaca&#34;&gt;State ekspirasi menjadi data descriptor yang dapat dibaca&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;timerfd_create()&lt;/code&gt; membuat objek timer dan mengembalikan file descriptor yang merujuk kepadanya. Clock yang dipilih menentukan basis waktu timer. Pilihan umum mencakup &lt;code&gt;CLOCK_MONOTONIC&lt;/code&gt;, &lt;code&gt;CLOCK_REALTIME&lt;/code&gt;, dan &lt;code&gt;CLOCK_BOOTTIME&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
