1c4f019cd7e71e3f101f7e4a37bc10d9771b1fb9
[linux-2.6.git] / fs / proc / proc_misc.c
1 /*
2  *  linux/fs/proc/proc_misc.c
3  *
4  *  linux/fs/proc/array.c
5  *  Copyright (C) 1992  by Linus Torvalds
6  *  based on ideas by Darren Senn
7  *
8  *  This used to be the part of array.c. See the rest of history and credits
9  *  there. I took this into a separate file and switched the thing to generic
10  *  proc_file_inode_operations, leaving in array.c only per-process stuff.
11  *  Inumbers allocation made dynamic (via create_proc_entry()).  AV, May 1999.
12  *
13  * Changes:
14  * Fulton Green      :  Encapsulated position metric calculations.
15  *                      <kernel@FultonGreen.com>
16  */
17
18 #include <linux/types.h>
19 #include <linux/errno.h>
20 #include <linux/time.h>
21 #include <linux/kernel.h>
22 #include <linux/kernel_stat.h>
23 #include <linux/tty.h>
24 #include <linux/string.h>
25 #include <linux/mman.h>
26 #include <linux/proc_fs.h>
27 #include <linux/ioport.h>
28 #include <linux/config.h>
29 #include <linux/mm.h>
30 #include <linux/mmzone.h>
31 #include <linux/pagemap.h>
32 #include <linux/swap.h>
33 #include <linux/slab.h>
34 #include <linux/smp.h>
35 #include <linux/signal.h>
36 #include <linux/module.h>
37 #include <linux/init.h>
38 #include <linux/smp_lock.h>
39 #include <linux/seq_file.h>
40 #include <linux/times.h>
41 #include <linux/profile.h>
42 #include <linux/blkdev.h>
43 #include <linux/hugetlb.h>
44 #include <linux/jiffies.h>
45 #include <linux/sysrq.h>
46 #include <linux/vmalloc.h>
47 #include <linux/crash_dump.h>
48 #include <linux/vs_base.h>
49 #include <linux/vs_cvirt.h>
50
51 #include <asm/uaccess.h>
52 #include <asm/pgtable.h>
53 #include <asm/io.h>
54 #include <asm/tlb.h>
55 #include <asm/div64.h>
56
57 #include <linux/vs_cvirt.h>
58
59 #define LOAD_INT(x) ((x) >> FSHIFT)
60 #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
61 /*
62  * Warning: stuff below (imported functions) assumes that its output will fit
63  * into one page. For some of those functions it may be wrong. Moreover, we
64  * have a way to deal with that gracefully. Right now I used straightforward
65  * wrappers, but this needs further analysis wrt potential overflows.
66  */
67 extern int get_hardware_list(char *);
68 extern int get_stram_list(char *);
69 extern int get_chrdev_list(char *);
70 extern int get_blkdev_list(char *);
71 extern int get_filesystem_list(char *);
72 extern int get_exec_domain_list(char *);
73 extern int get_dma_list(char *);
74 extern int get_locks_status (char *, char **, off_t, int);
75
76 static int proc_calc_metrics(char *page, char **start, off_t off,
77                                  int count, int *eof, int len)
78 {
79         if (len <= off+count) *eof = 1;
80         *start = page + off;
81         len -= off;
82         if (len>count) len = count;
83         if (len<0) len = 0;
84         return len;
85 }
86
87 static int loadavg_read_proc(char *page, char **start, off_t off,
88                                  int count, int *eof, void *data)
89 {
90         unsigned int running, threads;
91         int a, b, c;
92         int len;
93
94         if (vx_flags(VXF_VIRT_LOAD, 0)) {
95                 struct vx_info *vxi = current->vx_info;
96
97                 a = vxi->cvirt.load[0] + (FIXED_1/200);
98                 b = vxi->cvirt.load[1] + (FIXED_1/200);
99                 c = vxi->cvirt.load[2] + (FIXED_1/200);
100
101                 running = atomic_read(&vxi->cvirt.nr_running);
102                 threads = atomic_read(&vxi->cvirt.nr_threads);
103         } else {
104                 a = avenrun[0] + (FIXED_1/200);
105                 b = avenrun[1] + (FIXED_1/200);
106                 c = avenrun[2] + (FIXED_1/200);
107
108                 running = nr_running();
109                 threads = nr_threads;
110         }
111         len = sprintf(page,"%d.%02d %d.%02d %d.%02d %d/%d %d\n",
112                 LOAD_INT(a), LOAD_FRAC(a),
113                 LOAD_INT(b), LOAD_FRAC(b),
114                 LOAD_INT(c), LOAD_FRAC(c),
115                 running, threads, last_pid);
116         return proc_calc_metrics(page, start, off, count, eof, len);
117 }
118
119 struct vmalloc_info {
120         unsigned long used;
121         unsigned long largest_chunk;
122 };
123
124 static struct vmalloc_info get_vmalloc_info(void)
125 {
126         unsigned long prev_end = VMALLOC_START;
127         struct vm_struct* vma;
128         struct vmalloc_info vmi;
129         vmi.used = 0;
130
131         read_lock(&vmlist_lock);
132
133         if(!vmlist)
134                 vmi.largest_chunk = (VMALLOC_END-VMALLOC_START);
135         else
136                 vmi.largest_chunk = 0;
137
138         for (vma = vmlist; vma; vma = vma->next) {
139                 unsigned long free_area_size =
140                         (unsigned long)vma->addr - prev_end;
141                 vmi.used += vma->size;
142                 if (vmi.largest_chunk < free_area_size )
143
144                         vmi.largest_chunk = free_area_size;
145                 prev_end = vma->size + (unsigned long)vma->addr;
146         }
147         if(VMALLOC_END-prev_end > vmi.largest_chunk)
148                 vmi.largest_chunk = VMALLOC_END-prev_end;
149
150         read_unlock(&vmlist_lock);
151         return vmi;
152 }
153
154 static int uptime_read_proc(char *page, char **start, off_t off,
155                                  int count, int *eof, void *data)
156 {
157         struct timespec uptime;
158         struct timespec idle;
159         int len;
160         u64 idle_jiffies = init_task.utime + init_task.stime;
161
162         do_posix_clock_monotonic_gettime(&uptime);
163         jiffies_to_timespec(idle_jiffies, &idle);
164         if (vx_flags(VXF_VIRT_UPTIME, 0))
165                 vx_vsi_uptime(&uptime, &idle);
166
167         len = sprintf(page,"%lu.%02lu %lu.%02lu\n",
168                         (unsigned long) uptime.tv_sec,
169                         (uptime.tv_nsec / (NSEC_PER_SEC / 100)),
170                         (unsigned long) idle.tv_sec,
171                         (idle.tv_nsec / (NSEC_PER_SEC / 100)));
172
173         return proc_calc_metrics(page, start, off, count, eof, len);
174 }
175
176 static int meminfo_read_proc(char *page, char **start, off_t off,
177                                  int count, int *eof, void *data)
178 {
179         struct sysinfo i;
180         int len;
181         struct page_state ps;
182         unsigned long inactive;
183         unsigned long active;
184         unsigned long free;
185         unsigned long vmtot;
186         unsigned long committed;
187         unsigned long allowed;
188         struct vmalloc_info vmi;
189
190         get_page_state(&ps);
191         get_zone_counts(&active, &inactive, &free);
192
193 /*
194  * display in kilobytes.
195  */
196 #define K(x) ((x) << (PAGE_SHIFT - 10))
197         si_meminfo(&i);
198         si_swapinfo(&i);
199         committed = atomic_read(&vm_committed_space);
200         allowed = ((totalram_pages - hugetlb_total_pages())
201                 * sysctl_overcommit_ratio / 100) + total_swap_pages;
202
203         vmtot = (VMALLOC_END-VMALLOC_START)>>10;
204         vmi = get_vmalloc_info();
205         vmi.used >>= 10;
206         vmi.largest_chunk >>= 10;
207
208         /*
209          * Tagged format, for easy grepping and expansion.
210          */
211         len = sprintf(page,
212                 "MemTotal:     %8lu kB\n"
213                 "MemFree:      %8lu kB\n"
214                 "Buffers:      %8lu kB\n"
215                 "Cached:       %8lu kB\n"
216                 "SwapCached:   %8lu kB\n"
217                 "Active:       %8lu kB\n"
218                 "Inactive:     %8lu kB\n"
219                 "HighTotal:    %8lu kB\n"
220                 "HighFree:     %8lu kB\n"
221                 "LowTotal:     %8lu kB\n"
222                 "LowFree:      %8lu kB\n"
223                 "SwapTotal:    %8lu kB\n"
224                 "SwapFree:     %8lu kB\n"
225                 "Dirty:        %8lu kB\n"
226                 "Writeback:    %8lu kB\n"
227                 "Mapped:       %8lu kB\n"
228                 "Slab:         %8lu kB\n"
229                 "CommitLimit:  %8lu kB\n"
230                 "Committed_AS: %8lu kB\n"
231                 "PageTables:   %8lu kB\n"
232                 "VmallocTotal: %8lu kB\n"
233                 "VmallocUsed:  %8lu kB\n"
234                 "VmallocChunk: %8lu kB\n",
235                 K(i.totalram),
236                 K(i.freeram),
237                 K(i.bufferram),
238                 K(get_page_cache_size()-total_swapcache_pages-i.bufferram),
239                 K(total_swapcache_pages),
240                 K(active),
241                 K(inactive),
242                 K(i.totalhigh),
243                 K(i.freehigh),
244                 K(i.totalram-i.totalhigh),
245                 K(i.freeram-i.freehigh),
246                 K(i.totalswap),
247                 K(i.freeswap),
248                 K(ps.nr_dirty),
249                 K(ps.nr_writeback),
250                 K(ps.nr_mapped),
251                 K(ps.nr_slab),
252                 K(allowed),
253                 K(committed),
254                 K(ps.nr_page_table_pages),
255                 vmtot,
256                 vmi.used,
257                 vmi.largest_chunk
258                 );
259
260                 len += hugetlb_report_meminfo(page + len);
261
262         return proc_calc_metrics(page, start, off, count, eof, len);
263 #undef K
264 }
265
266 extern struct seq_operations fragmentation_op;
267 static int fragmentation_open(struct inode *inode, struct file *file)
268 {
269         (void)inode;
270         return seq_open(file, &fragmentation_op);
271 }
272
273 static struct file_operations fragmentation_file_operations = {
274         .open           = fragmentation_open,
275         .read           = seq_read,
276         .llseek         = seq_lseek,
277         .release        = seq_release,
278 };
279
280 static int version_read_proc(char *page, char **start, off_t off,
281                                  int count, int *eof, void *data)
282 {
283         extern char *linux_banner;
284         int len;
285
286         strcpy(page, linux_banner);
287         len = strlen(page);
288         return proc_calc_metrics(page, start, off, count, eof, len);
289 }
290
291 extern struct seq_operations cpuinfo_op;
292 static int cpuinfo_open(struct inode *inode, struct file *file)
293 {
294         return seq_open(file, &cpuinfo_op);
295 }
296 static struct file_operations proc_cpuinfo_operations = {
297         .open           = cpuinfo_open,
298         .read           = seq_read,
299         .llseek         = seq_lseek,
300         .release        = seq_release,
301 };
302
303 extern struct seq_operations vmstat_op;
304 static int vmstat_open(struct inode *inode, struct file *file)
305 {
306         return seq_open(file, &vmstat_op);
307 }
308 static struct file_operations proc_vmstat_file_operations = {
309         .open           = vmstat_open,
310         .read           = seq_read,
311         .llseek         = seq_lseek,
312         .release        = seq_release,
313 };
314
315 #ifdef CONFIG_PROC_HARDWARE
316 static int hardware_read_proc(char *page, char **start, off_t off,
317                                  int count, int *eof, void *data)
318 {
319         int len = get_hardware_list(page);
320         return proc_calc_metrics(page, start, off, count, eof, len);
321 }
322 #endif
323
324 #ifdef CONFIG_STRAM_PROC
325 static int stram_read_proc(char *page, char **start, off_t off,
326                                  int count, int *eof, void *data)
327 {
328         int len = get_stram_list(page);
329         return proc_calc_metrics(page, start, off, count, eof, len);
330 }
331 #endif
332
333 extern struct seq_operations partitions_op;
334 static int partitions_open(struct inode *inode, struct file *file)
335 {
336         return seq_open(file, &partitions_op);
337 }
338 static struct file_operations proc_partitions_operations = {
339         .open           = partitions_open,
340         .read           = seq_read,
341         .llseek         = seq_lseek,
342         .release        = seq_release,
343 };
344
345 extern struct seq_operations diskstats_op;
346 static int diskstats_open(struct inode *inode, struct file *file)
347 {
348         return seq_open(file, &diskstats_op);
349 }
350 static struct file_operations proc_diskstats_operations = {
351         .open           = diskstats_open,
352         .read           = seq_read,
353         .llseek         = seq_lseek,
354         .release        = seq_release,
355 };
356
357 #ifdef CONFIG_MODULES
358 extern struct seq_operations modules_op;
359 static int modules_open(struct inode *inode, struct file *file)
360 {
361         return seq_open(file, &modules_op);
362 }
363 static struct file_operations proc_modules_operations = {
364         .open           = modules_open,
365         .read           = seq_read,
366         .llseek         = seq_lseek,
367         .release        = seq_release,
368 };
369 #endif
370
371 extern struct seq_operations slabinfo_op;
372 extern ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);
373 static int slabinfo_open(struct inode *inode, struct file *file)
374 {
375         return seq_open(file, &slabinfo_op);
376 }
377 static struct file_operations proc_slabinfo_operations = {
378         .open           = slabinfo_open,
379         .read           = seq_read,
380         .write          = slabinfo_write,
381         .llseek         = seq_lseek,
382         .release        = seq_release,
383 };
384
385 int show_stat(struct seq_file *p, void *v)
386 {
387         int i;
388         extern unsigned long total_forks;
389         unsigned long jif;
390         u64     sum = 0, user = 0, nice = 0, system = 0,
391                 idle = 0, iowait = 0, irq = 0, softirq = 0;
392
393         jif = - wall_to_monotonic.tv_sec;
394         if (wall_to_monotonic.tv_nsec)
395                 --jif;
396
397         for_each_cpu(i) {
398                 int j;
399
400                 user += kstat_cpu(i).cpustat.user;
401                 nice += kstat_cpu(i).cpustat.nice;
402                 system += kstat_cpu(i).cpustat.system;
403                 idle += kstat_cpu(i).cpustat.idle;
404                 iowait += kstat_cpu(i).cpustat.iowait;
405                 irq += kstat_cpu(i).cpustat.irq;
406                 softirq += kstat_cpu(i).cpustat.softirq;
407                 for (j = 0 ; j < NR_IRQS ; j++)
408                         sum += kstat_cpu(i).irqs[j];
409         }
410
411         seq_printf(p, "cpu  %llu %llu %llu %llu %llu %llu %llu\n",
412                 (unsigned long long)jiffies_64_to_clock_t(user),
413                 (unsigned long long)jiffies_64_to_clock_t(nice),
414                 (unsigned long long)jiffies_64_to_clock_t(system),
415                 (unsigned long long)jiffies_64_to_clock_t(idle),
416                 (unsigned long long)jiffies_64_to_clock_t(iowait),
417                 (unsigned long long)jiffies_64_to_clock_t(irq),
418                 (unsigned long long)jiffies_64_to_clock_t(softirq));
419         for_each_online_cpu(i) {
420
421                 /* Copy values here to work around gcc-2.95.3, gcc-2.96 */
422                 user = kstat_cpu(i).cpustat.user;
423                 nice = kstat_cpu(i).cpustat.nice;
424                 system = kstat_cpu(i).cpustat.system;
425                 idle = kstat_cpu(i).cpustat.idle;
426                 iowait = kstat_cpu(i).cpustat.iowait;
427                 irq = kstat_cpu(i).cpustat.irq;
428                 softirq = kstat_cpu(i).cpustat.softirq;
429                 seq_printf(p, "cpu%d %llu %llu %llu %llu %llu %llu %llu\n",
430                         i,
431                         (unsigned long long)jiffies_64_to_clock_t(user),
432                         (unsigned long long)jiffies_64_to_clock_t(nice),
433                         (unsigned long long)jiffies_64_to_clock_t(system),
434                         (unsigned long long)jiffies_64_to_clock_t(idle),
435                         (unsigned long long)jiffies_64_to_clock_t(iowait),
436                         (unsigned long long)jiffies_64_to_clock_t(irq),
437                         (unsigned long long)jiffies_64_to_clock_t(softirq));
438         }
439         seq_printf(p, "intr %llu", (unsigned long long)sum);
440
441 #if !defined(CONFIG_PPC64) && !defined(CONFIG_ALPHA)
442         for (i = 0; i < NR_IRQS; i++)
443                 seq_printf(p, " %u", kstat_irqs(i));
444 #endif
445
446         seq_printf(p,
447                 "\nctxt %llu\n"
448                 "btime %lu\n"
449                 "processes %lu\n"
450                 "procs_running %lu\n"
451                 "procs_blocked %lu\n",
452                 nr_context_switches(),
453                 (unsigned long)jif,
454                 total_forks,
455                 nr_running(),
456                 nr_iowait());
457
458         return 0;
459 }
460
461 static int stat_open(struct inode *inode, struct file *file)
462 {
463         unsigned size = 4096 * (1 + num_possible_cpus() / 32);
464         char *buf;
465         struct seq_file *m;
466         int res;
467
468         /* don't ask for more than the kmalloc() max size, currently 128 KB */
469         if (size > 128 * 1024)
470                 size = 128 * 1024;
471         buf = kmalloc(size, GFP_KERNEL);
472         if (!buf)
473                 return -ENOMEM;
474
475         res = single_open(file, show_stat, NULL);
476         if (!res) {
477                 m = file->private_data;
478                 m->buf = buf;
479                 m->size = size;
480         } else
481                 kfree(buf);
482         return res;
483 }
484 static struct file_operations proc_stat_operations = {
485         .open           = stat_open,
486         .read           = seq_read,
487         .llseek         = seq_lseek,
488         .release        = single_release,
489 };
490
491 static int devices_read_proc(char *page, char **start, off_t off,
492                                  int count, int *eof, void *data)
493 {
494         int len = get_chrdev_list(page);
495         len += get_blkdev_list(page+len);
496         return proc_calc_metrics(page, start, off, count, eof, len);
497 }
498
499 /*
500  * /proc/interrupts
501  */
502 static void *int_seq_start(struct seq_file *f, loff_t *pos)
503 {
504         return (*pos <= NR_IRQS) ? pos : NULL;
505 }
506
507 static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos)
508 {
509         (*pos)++;
510         if (*pos > NR_IRQS)
511                 return NULL;
512         return pos;
513 }
514
515 static void int_seq_stop(struct seq_file *f, void *v)
516 {
517         /* Nothing to do */
518 }
519
520
521 extern int show_interrupts(struct seq_file *f, void *v); /* In arch code */
522 static struct seq_operations int_seq_ops = {
523         .start = int_seq_start,
524         .next  = int_seq_next,
525         .stop  = int_seq_stop,
526         .show  = show_interrupts
527 };
528
529 int interrupts_open(struct inode *inode, struct file *filp)
530 {
531         return seq_open(filp, &int_seq_ops);
532 }
533
534 static struct file_operations proc_interrupts_operations = {
535         .open           = interrupts_open,
536         .read           = seq_read,
537         .llseek         = seq_lseek,
538         .release        = seq_release,
539 };
540
541 static int filesystems_read_proc(char *page, char **start, off_t off,
542                                  int count, int *eof, void *data)
543 {
544         int len = get_filesystem_list(page);
545         return proc_calc_metrics(page, start, off, count, eof, len);
546 }
547
548 static int cmdline_read_proc(char *page, char **start, off_t off,
549                                  int count, int *eof, void *data)
550 {
551         int len;
552
553         len = sprintf(page, "%s\n", saved_command_line);
554         return proc_calc_metrics(page, start, off, count, eof, len);
555 }
556
557 static int locks_read_proc(char *page, char **start, off_t off,
558                                  int count, int *eof, void *data)
559 {
560         int len = get_locks_status(page, start, off, count);
561
562         if (len < count)
563                 *eof = 1;
564         return len;
565 }
566
567 static int execdomains_read_proc(char *page, char **start, off_t off,
568                                  int count, int *eof, void *data)
569 {
570         int len = get_exec_domain_list(page);
571         return proc_calc_metrics(page, start, off, count, eof, len);
572 }
573
574 #ifdef CONFIG_MAGIC_SYSRQ
575 /*
576  * writing 'C' to /proc/sysrq-trigger is like sysrq-C
577  */
578 static ssize_t write_sysrq_trigger(struct file *file, const char __user *buf,
579                                    size_t count, loff_t *ppos)
580 {
581         if (count) {
582                 char c;
583
584                 if (get_user(c, buf))
585                         return -EFAULT;
586                 __handle_sysrq(c, NULL, NULL);
587         }
588         return count;
589 }
590
591 static struct file_operations proc_sysrq_trigger_operations = {
592         .write          = write_sysrq_trigger,
593 };
594 #endif
595
596 struct proc_dir_entry *proc_root_kcore;
597
598 static void create_seq_entry(char *name, mode_t mode, struct file_operations *f)
599 {
600         struct proc_dir_entry *entry;
601         entry = create_proc_entry(name, mode, NULL);
602         if (entry)
603                 entry->proc_fops = f;
604 }
605
606 void __init proc_misc_init(void)
607 {
608         struct proc_dir_entry *entry;
609         static struct {
610                 char *name;
611                 int (*read_proc)(char*,char**,off_t,int,int*,void*);
612         } *p, simple_ones[] = {
613                 {"loadavg",     loadavg_read_proc},
614                 {"uptime",      uptime_read_proc},
615                 {"meminfo",     meminfo_read_proc},
616                 {"version",     version_read_proc},
617 #ifdef CONFIG_PROC_HARDWARE
618                 {"hardware",    hardware_read_proc},
619 #endif
620 #ifdef CONFIG_STRAM_PROC
621                 {"stram",       stram_read_proc},
622 #endif
623                 {"devices",     devices_read_proc},
624                 {"filesystems", filesystems_read_proc},
625                 {"cmdline",     cmdline_read_proc},
626                 {"locks",       locks_read_proc},
627                 {"execdomains", execdomains_read_proc},
628                 {NULL,}
629         };
630         for (p = simple_ones; p->name; p++)
631                 create_proc_read_entry(p->name, 0, NULL, p->read_proc, NULL);
632
633         proc_symlink("mounts", NULL, "self/mounts");
634
635         /* And now for trickier ones */
636         entry = create_proc_entry("kmsg", S_IRUSR, &proc_root);
637         if (entry)
638                 entry->proc_fops = &proc_kmsg_operations;
639         create_seq_entry("cpuinfo", 0, &proc_cpuinfo_operations);
640         create_seq_entry("partitions", 0, &proc_partitions_operations);
641         create_seq_entry("stat", 0, &proc_stat_operations);
642         create_seq_entry("interrupts", 0, &proc_interrupts_operations);
643         create_seq_entry("slabinfo",S_IWUSR|S_IRUGO,&proc_slabinfo_operations);
644         create_seq_entry("buddyinfo",S_IRUGO, &fragmentation_file_operations);
645         create_seq_entry("vmstat",S_IRUGO, &proc_vmstat_file_operations);
646         create_seq_entry("diskstats", 0, &proc_diskstats_operations);
647 #ifdef CONFIG_MODULES
648         create_seq_entry("modules", 0, &proc_modules_operations);
649 #endif
650 #ifdef CONFIG_SCHEDSTATS
651         create_seq_entry("schedstat", 0, &proc_schedstat_operations);
652 #endif
653 #ifdef CONFIG_PROC_KCORE
654         proc_root_kcore = create_proc_entry("kcore", S_IRUSR, NULL);
655         if (proc_root_kcore) {
656                 proc_root_kcore->proc_fops = &proc_kcore_operations;
657                 proc_root_kcore->size =
658                                 (size_t)high_memory - PAGE_OFFSET + PAGE_SIZE;
659         }
660 #endif
661         crash_create_proc_entry();
662 #ifdef CONFIG_MAGIC_SYSRQ
663         entry = create_proc_entry("sysrq-trigger", S_IWUSR, NULL);
664         if (entry)
665                 entry->proc_fops = &proc_sysrq_trigger_operations;
666 #endif
667         crash_enable_by_proc();
668 #ifdef CONFIG_PPC32
669         {
670                 extern struct file_operations ppc_htab_operations;
671                 entry = create_proc_entry("ppc_htab", S_IRUGO|S_IWUSR, NULL);
672                 if (entry)
673                         entry->proc_fops = &ppc_htab_operations;
674         }
675 #endif
676 }