sample code buggy?
Posted Jan 3, 2008 10:46 UTC (Thu) by
johill (subscriber, #25196)
Parent article:
What is RCU? Part 2: Usage
The sample code looks a bit odd with
struct profile_buffer {
long size;
atomic_t entry[0];
};
static struct profile_buffer *buf = NULL;
[...]
atomic_t *p = buf;
Unless I'm totally misunderstanding something here it looks like the pointer assignment can't possibly be compatible?
(
Log in to post comments)