blob: 39f8c8801076351de6b0c2cfc3d7b070a2c7dba4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __USER_H__
7#define __USER_H__
8
Paolo 'Blaisorblade' Giarrusso9cf85b32006-04-10 22:53:31 -07009extern void panic(const char *fmt, ...)
10 __attribute__ ((format (printf, 1, 2)));
11extern int printk(const char *fmt, ...)
12 __attribute__ ((format (printf, 1, 2)));
Linus Torvalds1da177e2005-04-16 15:20:36 -070013extern void schedule(void);
14extern void *um_kmalloc(int size);
15extern void *um_kmalloc_atomic(int size);
16extern void kfree(void *ptr);
17extern int in_aton(char *str);
18extern int open_gdb_chan(void);
Paolo 'Blaisorblade' Giarrussoa8bfb942005-09-22 21:44:14 -070019/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
20extern unsigned long strlcpy(char *, const char *, unsigned long);
21extern unsigned long strlcat(char *, const char *, unsigned long);
Linus Torvalds1da177e2005-04-16 15:20:36 -070022extern void *um_vmalloc(int size);
Paolo 'Blaisorblade' Giarrussob6316292006-01-18 17:42:58 -080023extern void *um_vmalloc_atomic(int size);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024extern void vfree(void *ptr);
25
26#endif
27
28/*
29 * Overrides for Emacs so that we follow Linus's tabbing style.
30 * Emacs will notice this stuff at the end of the file and automatically
31 * adjust the settings for this buffer only. This must remain at the end
32 * of the file.
33 * ---------------------------------------------------------------------------
34 * Local variables:
35 * c-file-style: "linux"
36 * End:
37 */