public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Simplifying sysfs code
@ 2010-10-12 22:22 Linus Lüssing
  2010-10-12 22:22 ` [B.A.T.M.A.N.] [PATCH 1/4] batman-adv: Unify sysfs file names with their bat_priv atomics Linus Lüssing
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Linus Lüssing @ 2010-10-12 22:22 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi there,

thanks for all the feedback for the changes I wanted to make to the sysfs code base.
I tried to address bugs and suggestions. The macros are now a bit smaller than
in the beginning, the missing static has been added (thanks Andrew and Sven).

Due to Marecs comment on the issues with changing sysfs file names in the kernel
(which I was not aware of, thanks for explaining) and comments about old sysfs
filenames being more descriptive, I changed the bat_priv names instead now.
I don't really see a good reason yet why they should not be equal.


The hop_penalty and num_bcasts patches will follow later. There've been some
discussions about what the limit and rules for exposing defines in sysfs
should be.

Of course, having a good set of default values and not that many options configurable
during runtime at all or most parameters just being adjusted automatically,
makes the routing protocol itself much more stable and reliable, and less
complex and easy to use for the user. However, certain assessable scenarios might
benefit from certain parameters being tweakable during runtime, making optimizations
and tests with different values quick and easy without having to rebuild and install
the kernel module or even firmware images.

Simon's idea so far was, to introduce a debug/ folder in sysfs which is hidden by
default and could be enabled with a KConfig option, so that tinkerers still have a
chance for their needs for tweaking parameters. num_bcasts would probably be one of
the first candidates as a debug-parameter.

If I forgot any very important points from the discussions so far, please don't hesitate
to add them here.

And as always, any comments and suggestions highly appreciated :).

Cheers, Linus

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-10-23  1:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-12 22:22 [B.A.T.M.A.N.] Simplifying sysfs code Linus Lüssing
2010-10-12 22:22 ` [B.A.T.M.A.N.] [PATCH 1/4] batman-adv: Unify sysfs file names with their bat_priv atomics Linus Lüssing
2010-10-12 22:22 ` [B.A.T.M.A.N.] [PATCH 2/4] batman-adv: Wrapper functions for sysfs storing Linus Lüssing
2010-10-12 22:22 ` [B.A.T.M.A.N.] [PATCH 3/4] batman-adv: Introduce generic BAT_ATTR_* macros Linus Lüssing
2010-10-16  2:11   ` Sven Eckelmann
2010-10-17 17:31     ` [B.A.T.M.A.N.] [PATCHv2 " Linus Lüssing
2010-10-12 22:22 ` [B.A.T.M.A.N.] [PATCH 4/4] batman-adv: Ommit storing struct device in sysfs functions Linus Lüssing
2010-10-13 11:33 ` [B.A.T.M.A.N.] [PATCH 5/4] batman-adv: Make hop_penalty configurable via sysfs Linus Lüssing
2010-10-15 16:01   ` Marek Lindner
2010-10-18 10:01     ` [B.A.T.M.A.N.] [PATCH] batman-adv: Adding sysfs API documentation for hop_penalty Linus Lüssing
2010-10-18 10:11       ` Marek Lindner
2010-10-18 21:44         ` [B.A.T.M.A.N.] [PATCH] batman-adv: Adding sysfs ABI " Linus Lüssing
2010-10-23  1:46           ` Marek Lindner
2010-10-23  1:45   ` [B.A.T.M.A.N.] [PATCH 5/4] batman-adv: Make hop_penalty configurable via sysfs Marek Lindner
2010-10-15 16:06 ` [B.A.T.M.A.N.] Simplifying sysfs code Marek Lindner
2010-10-18 10:06 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox