#
#asahi · 2023-10-07 18:50
hex-spellrlly?
#asahi · 2023-10-07 18:49
ydaltonless than 1 year XD
#asahi · 2023-10-07 18:49
hex-spellydalton, how long have you been doing this?
#asahi · 2023-10-07 18:49
hex-spellwhew, I'll have to read more, but I think I'm in the right place
#asahi · 2023-10-07 18:48
ydaltonthey process data byte for byte rather than with block devices which process in big chunks
#asahi · 2023-10-07 18:47
ydaltonyes
#asahi · 2023-10-07 18:47
hex-spellcharacter device driver
#asahi · 2023-10-07 18:47
ydaltondo you know what a chardev is?
#asahi · 2023-10-07 18:47
hex-spellI might look into that
#asahi · 2023-10-07 18:47
hex-spelloh I found a legit looking page that talks about chardevs: tldp.org
#asahi · 2023-10-07 18:46
ydaltonkinda, but it's not about memory
#asahi · 2023-10-07 18:45
hex-spellby unregister you mean like a free?
#asahi · 2023-10-07 18:45
ydaltons/cause/caused
#asahi · 2023-10-07 18:45
ydaltoni remember wrote a simple chardev and forgot the unregister chardev function in the module_exit function, then when i tried to open its device node it cause a kernel oops, so that was fun :P
#asahi · 2023-10-07 18:44
hex-spellcool
#asahi · 2023-10-07 18:43
ydaltoni mean, as long as your register calls are followed by an unregister call you should be good
#asahi · 2023-10-07 18:43
svenbut seriously, don’t worry about that
#asahi · 2023-10-07 18:42
svenespecially inside a codebase as complex as the kernel where lifetime rules, etc. are sometimes not very clear if you look at the code for the first time
#asahi · 2023-10-07 18:42
hex-spellI prefer to be bullied by the borrow checker
#asahi · 2023-10-07 18:42
hex-spellyeah, C is so scary
#asahi · 2023-10-07 18:41
sventhere’s code review but they will happen anyway
#asahi · 2023-10-07 18:41
hex-spellright?
#asahi · 2023-10-07 18:41
hex-spellmy guess is that PRs here aren't blindly accepted, right?
#asahi · 2023-10-07 18:40
ydaltonalthough, in kernel space the stakes are higher with vulnerabilities
#asahi · 2023-10-07 18:40
svenvulnerabilities should be the least of your worries at this point 😅
#asahi · 2023-10-07 18:40
ydalton:D
#asahi · 2023-10-07 18:39
hex-spellyou got me
#asahi · 2023-10-07 18:39
hex-spelldamn
#asahi · 2023-10-07 18:39
ydaltonit should be NULL
#asahi · 2023-10-07 18:39
ydaltonthat tells me more than enough
#asahi · 2023-10-07 18:39
hex-spellnull xD
#asahi · 2023-10-07 18:38
ydaltonhex-spell: how much experience with C do you have?
#asahi · 2023-10-07 18:38
ydaltonif you have a couple of hours to spend of course :)
#asahi · 2023-10-07 18:38
hex-spellabout my skillset, I'm worried I could introduce some buffer overflow vulnerability, are there any checks in the workflow?
#asahi · 2023-10-07 18:38
ydaltonif you want resources on how some things work, i would recommend you watch marcan or lina's dev streams, i did learn quite a bit from watching those
#asahi · 2023-10-07 18:37
hex-spellsweet
#asahi · 2023-10-07 18:36
ydaltonold but still okay
#asahi · 2023-10-07 18:36
ydaltonhttps://www.youtube.com/watch?v=j_I9nkpovCQ
#asahi · 2023-10-07 18:36
hex-spellbut I'll watch it
#asahi · 2023-10-07 18:36
hex-spellnot really, I'm worried that would make me buy the m2 right away lmao
#asahi · 2023-10-07 18:35
ydaltonhex-spell: have you watched a video on installing asahi linux?
#asahi · 2023-10-07 18:34
ydaltonyes, all it does is resize the macOS partition to fit a linux install
#asahi · 2023-10-07 18:34
j`eythe default is dual booting currently
#asahi · 2023-10-07 18:34
hex-spellnice
#asahi · 2023-10-07 18:34
j`eyyes
#asahi · 2023-10-07 18:34
hex-spellreally? so, can I still use it as a macOS PC after doing the linux install? (sorry if this is in the FAQ)
#asahi · 2023-10-07 18:33
ydaltonat this point you can't really remove macOS because of firmware updates
#asahi · 2023-10-07 18:32
hex-spell(as long as I can still dual boot, ofc)
#asahi · 2023-10-07 18:32
ydaltonif you just want to install m1n1 and do things there, i guess you can
#asahi · 2023-10-07 18:31
hex-spellI'm not worried about not being able to use it as my main driver

plus ›