title: Dynamically adding entries to sysctl
body: <p>Consider this code:</p>
  
  <pre><code>int procmon_state = 0;
  static struct ctl_table_header *procmon_table_header;
  
  static ctl_table state_table[] = {
      {
          .procname = "state", .mode = 0666,
          .proc_handler = &amp;proc_dointvec_minmax,
          .data = &amp;procmon_state, .maxlen = sizeof(int),
          .extra1 = "\x00\x00\x00\x00" /*0*/, .extra2 = "\x01\x00\x00\x00" /*1*/
      },
      { 0 }
  };
  
  static ctl_table procmon_table[] = {
      {
          .procname = "procmon", .mode = 0555,
          .child = state_table
      },
      { 0 }
  };
  
  procmon_table_header = register_sysctl_table(procmon_table);
  </code></pre>
  
  <p>This will create an entry in <code>/proc/sys</code> (so I could then just <code>sysctl procmon.state=1</code>).</p>
  
  <p>My question is: Once that entry is created, how can I add more entries?</p>
  
  <p>EDIT: More entries inside <code>procmon</code>, that is. For example, <code>procmon.another_state</code></p>