On Thu, 2007-08-02 at 15:47 +0200, Peter Zijlstra wrote:
Save the explicit "struct" and put it into the macro (and force people
to not use typedefs).
#define alloc_struct(type, flags) ((type *)kmalloc(sizeof(struct type), (flags)))
Obious drawback: We may need alloc_union().
SCNR ...
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services
-