On Tue, 28 Jun 2005, Paul E. McKenney wrote:
> awake... How about the following instead?
>
> void set_nmi_callback(nmi_callback_t callback)
> {
> rcu_assign_pointer(nmi_callback, callback);
> }
>
> Similarly:
>
> void unset_nmi_callback(void)
> {
> rcu_assign_pointer(nmi_callback, dummy_nmi_callback);
> }
Great, more API coverage is always better.
> This, combined with the rcu_dereference() in do_nmi() seem to me to
> make the usage a lot more clear. If you agree, would you like to
> submit the patches, or should I?
You go ahead.
> > Thanks for elaborating, the examples certainly do help clarify usage.
>
> Glad they help, will clean them up (so that the examples use
> rcu_dereference() and rcu_assign_pointer()) and submit them!
Thanks,
Zwane
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]