-
antranigv
dtrace: failed to compile script unixso.d: line 1: useless declaration
-
antranigv
any idea how can I find the useless declaration?
-
sommerfeld
I'd start by looking at the first line of unixso.d
-
sommerfeld
-
fenix
→ CODE REVIEW 3208: 16149 intrd leaks memory (NEW) |
illumos.org/issues/16149
-
sommerfeld
oh, oops, not there.
-
sommerfeld
try here:
-
sommerfeld
-
antranigv
sommerfeld I'm stuck at a simpler place now
-
antranigv
basically
-
antranigv
sockaddrv = (struct sockaddr_un *)arg2;
-
antranigv
trace(sockaddrv->sun_path);
-
antranigv
I cannot get the path. I know I have to use copyinstr
-
antranigv
but I'm having a hard time understanding where
-
jbk
what are you tracing?
-
jbk
userland program? or a kernel function?
-
tsoome
-18C. nice.
-
antranigv
jbk a userland application
-
jbk
then maybe trace(copyinstr(sockaddrv->sun_path))
-
jbk
tsoome: sounds like a midwest winter :)
-
tomww
n/win 23
-
josephholsten
if you were wanting driver code to read to complement reading the STEAMS Programming guide, is there a driver that's conceptually simple I should start with?
-
josephholsten
I know I'm totally out of my depth trying to understand how to contribute ath, or port a more recent wifi driver. If there's the equivalent of a wading pool, I should probably start there.
-
richlowe
If you're wanting wifi drivers, think about STREAMS as little as you can, look into the gldv3 drivers
-
richlowe
I haven't looked at the Sun version, but I wrote a version of atu(4D) for myself years ago, and that's a super simple device to learn how to get yourself into the network stack etc.
-
josephholsten
are the virtio drivers worth learning? I was imagining they might be interestingly trivial.
-
richlowe
they could be, I didn't think of that, but I haven't looked at them really either.
-
josephholsten
so just all of uts/common/io/mac, right?
-
josephholsten
oh, _provider first I see
-
jbk
they're i think simpler than many drivers since they don't have to worry as much about hw variants, other bits that might be relevant for physical hardware, etc
-
jbk
but not sure if that means they're 'simple'
-
richlowe
yeah, that was my logic with atu too, it's a very pair of usb pipes, as best as I remember
-
jbk
the extent of my experience writing STREAMS drivers is writing a keyboard driver for hyper-v
-
jbk
which wasn't tooo bad
-
jbk
more of the issues weren't really STREAMS related
-
jbk
but more all the undocumented assumptions about what things you have to implement
-
jbk
as well as how we deal with keyboards as the console input device
-
jbk
where we (almost certainly for legacy, and probably even pre-ACPI legacy reasons) bake in certain assumptions
-
jbk
it wouldn't surprise me if we could simplify a lot of that
-
josephholsten
anything I should keep my eyes open for? I'm likely to assume complexity is necessary until I have a lot more reading under my belt.
-
gitomat
[illumos-gate] 16146 webrev.sh and flg.flp.sh need some style updates -- Bill Sommerfeld <sommerfeld⊙ho>