All of lore.kernel.org
 help / color / mirror / Atom feed
* patch idea for wfx
@ 2022-03-31 14:14 Jaehee Park
  2022-03-31 17:40 ` Fabio M. De Francesco
  2022-03-31 17:52 ` Stefano Brivio
  0 siblings, 2 replies; 11+ messages in thread
From: Jaehee Park @ 2022-03-31 14:14 UTC (permalink / raw)
  To: outreachy

I was reading the wfx codebase yesterday and it seems like there are a lot of instances of "container_of()" structure which is specific to the linux kernel. I saw a "fixme" comment in the code that says that the container_of() structure is preferred and I wanted to tackle it. Here's the line with the fixme comment:
https://github.com/SiliconLabs/wfx-linux-driver/blob/63952592e64d2ca5b4613ab5559ba40b73ef47e8/sta.c#L744

Maybe it's too big of a task though. What do you think?

(Side question: The wfx project is also in the staging/driver but I'm not seeing the linux/kernel/git/gregkh/staging repository anywhere on github -- I'm probably not understanding something basic here but shouldn't the staging directory be a subrepo or submodule within the linux kernel repo? ) 

Now I'm trying to understand the wvif structure they are using in the functions. In their previous examples container_of() took in 3 things: [1] work, [2] struct wfx_dev, and [3] the name. I'm refering to the man page for the container_of inputs. 
I'm not entirely sure why container_of structure is helpful. But this article seems to say it makes runtime faster: http://www.kroah.com/log/linux/container_of.html

Another question I had has to do with testing. I understand we're building the kernel to check if the code-change compiles correctly (I've enabled the silicon labs driver in the menuconfig and saw that it builds successfully for basic changes). But for more complex changes, would it be a good idea to test it on the hardware -- after build, install the kernel package on an apu2 for example? I have a apu2 and I can buy a siliconlab wifi card to test it on there. 

I'm brain-dumping ideas messily (sorry! please let me know what you'd recommend) and I'm mostly just conveying my thought process. I am having trouble with IRC at the moment so I'm sending my thoughts here. 

Thanks,
Jaehee

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

end of thread, other threads:[~2022-04-07  1:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-31 14:14 patch idea for wfx Jaehee Park
2022-03-31 17:40 ` Fabio M. De Francesco
2022-03-31 17:52 ` Stefano Brivio
2022-03-31 21:47   ` Jaehee Park
2022-03-31 22:12     ` Stefano Brivio
2022-04-06  4:28       ` Jaehee Park
2022-04-06 13:54         ` Fabio M. De Francesco
2022-04-06 14:24           ` Jaehee Park
2022-04-06 16:04             ` Fabio M. De Francesco
2022-04-07  1:57               ` Jaehee Park
2022-04-06 15:41         ` Stefano Brivio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.