[lkml]   [2003]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kobjects, sysfs and the driver model make my head hurt
On Sun, 6 Jul 2003, Matthew Wilcox wrote:

> Why on earth does it return the value of its argument?

Maybe for the same reason 'strcpy' returns 'dest'. It allows you to use
the function in a function parameter :

obj *get(obj *o);
int rel(obj *o);
int foo(int q, obj *o);

foo(17, get(o));

- Davide

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:46    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean