Rev 1408 | Rev 1430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1408 | Rev 1412 | ||
---|---|---|---|
Line 111... | Line 111... | ||
111 | if (n != 0 && size > ULONG_MAX / n) |
111 | if (n != 0 && size > ULONG_MAX / n) |
112 | return NULL; |
112 | return NULL; |
113 | return kzalloc(n * size, 0); |
113 | return kzalloc(n * size, 0); |
114 | } |
114 | } |
Line -... | Line 115... | ||
- | 115 | ||
- | 116 | void free (void *ptr); |
|
115 | 117 | ||
Line 116... | Line 118... | ||
116 | #endif /* __KERNEL__ */ |
118 | #endif /* __KERNEL__ */ |
Line 117... | Line 119... | ||
117 | 119 | ||
Line 118... | Line 120... | ||
118 | typedef unsigned long pgprotval_t; |
120 | typedef unsigned long pgprotval_t; |
119 | 121 | ||
120 | typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; |
122 | typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; |
- | 123 | ||
Line 121... | Line 124... | ||
121 | 124 | struct file {}; |
|
122 | struct file {}; |
125 | struct vm_area_struct {}; |
123 | struct vm_area_struct {}; |
126 | struct address_space {}; |
124 | struct address_space {}; |
127 | struct device {}; |
Line 131... | Line 134... | ||
131 | #define preempt_disable_notrace() do { } while (0) |
134 | #define preempt_disable_notrace() do { } while (0) |
132 | #define preempt_enable_no_resched_notrace() do { } while (0) |
135 | #define preempt_enable_no_resched_notrace() do { } while (0) |
133 | #define preempt_enable_notrace() do { } while (0) |
136 | #define preempt_enable_notrace() do { } while (0) |
Line 134... | Line -... | ||
134 | - | ||
135 | - | ||
136 | - | ||
137 | void free (void *ptr); |
137 |