6 ms·
Linux Kernel Module Programming Guide
- justinclift 5y agoThis looks really good. :) Pity it's on GitHub Pages though, so people using IPv6 only can't access it. :(
- rolph 5y agothis appears to be a link to .PDF of the content : https://github.com/sysprog21/lkmpg/releases/download/latest/lkmpg.pdf https://github.com/sysprog21/lkmpg/releases/download/latest/... [PDF]
- laumars 5y agoSo offer to mirror it then. The D in git’s DVCS stands for “decentralised”. I’ve heard some dumb complaints in my time but the real beauty of this one is you made it on another site that’s IPv4 only (HN doesn’t yet support IPv6 either).
- turminal 5y agoD in DVCS actually stands for distributed, but your point still stands ;)
- laumars 5y agoDamn it, I knew that as well. That’ll teach me not to post on HN at 1 in the morning! Thanks for the correction :)
- justinclift 5y agoIf it were something I was likely to be using a bunch, then I probably would. Saying that it's a "dumb complaint" to point out that large parts of the world can't access the content is kind of taking the piss though. :(
- deleted 5y ago[deleted]
- laumars 5y agoSaying “large parts of the world can’t access [IPv4]” is massively over exaggerating the situation. Particularly when most of the web is still IPv4 only. You do actually realise that even users with only an IPv6 address can still get access to IPv4 sites via bridges (the names of which escape me off hand)?
- junon 5y agoNot the world's biggest fan of GitHub myself but to be fair they're about to support ipv6. They've started putting up AAAA records around other parts of the site if memory serves.
- justinclift 5y agoCool, that's really good news. :)
- zrail 5y agoDo you have real examples of people that actually have zero access to IPv4 sites, or is this just a theoretical concern?
- est31 5y agoMy ISP sometimes has outages of their carrier grade NAT infrastructure. Then the ipv4 is broken, but services that use ipv6 still work.
- justinclift 5y agoQuite a few of our (sqlitebrowser.org) users weren't able to access our download server, nor nightly build server, until we made it available over IPv6 in addition to just IPv4. Seems to be mainly people located in South East Asian countries, though I'd have to go trawling back through log history to get the exact details.
- zrail 5y agoThanks, that makes sense. Often it feels like that argument gets thrown around disingenuously. It's nice to have specific examples to talk about.
- Arnavion 5y agoSee if your router supports DNS64 (DNS server maps IPv4 addresses in responses to IPv6 addresses under a chosen prefix) and NAT64 (firewall translates IPv6 LAN packets with addresses under that prefix to the original IPv4 packets, and back). I don't know about consumer routers, but it's relatively straightforward to do on pfSense / OPNsense. It doesn't work for protocols that embed IP addresses, like BitTorrent, since you'd need a protocol-aware proxy for that rather than just an IP firewall, but for something like HTTP there won't be any problem.
- stjohnswarts 5y agoHold up.... People are using IPV6 only networks now? There aren't ipv4 bridges? That's kind of disconcerting. This is a first time hearing of such. While I have no doubt it can be done technically but why can't you get to IPV4 networks?
- stolen_biscuit 5y agoNice, I remember reading the old 2007 version a few years ago, so nice to see it's been updated for modern linux. Perhaps one of the authors could update the old page to notify/direct users to the new version? Still ranks first when I google for it Old version: https://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html https://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html
- RustyRussell 5y agoWow, turns out I don't think I've ever read that! Bit disappointed that this doesn't cover custom parsing of module parameters: always thought that was a bit underused.
- sydthrowaway 5y agoMissing anything about DMAs and IOMMU
- rank0 5y agoI’ve always been fascinated by kernel development. Realistically though, what are some examples of useful modules someone could write without several years of practice?
- Topgamer7 5y agoI wrote some low level code to turn an Arduino into a USB audio device and bit banged audio from a couple pins. Basically no experience in hardware stuff. But to be clear, getting good at programming is definitely a year+ kinda thing, of full time focus.
- XzAeRosho 5y agoExpanding on this reply, you can think of Kernel Modules as Windows drivers. Most of the time they are meant to be used as an interface on which you can communicate from the OS with an underlying device more easily .
- SilverRed 5y agoAnd usually they are paired with a user space tool for even easier interaction. Ideally the driver should expose literally every function and possible action and then the userspace tool has the job of simplifying that down and not supporting very unusual or complicated setups. You could think of the userspace side as the gui you get with gpu drivers which interacts with a separate kernel space side
- Unklejoe 5y agoHow did you end up doing USB with the Arduino? Was it bit banged as well (VUSB)? Is this code available anywhere?
- the_only_law 5y agoInterfaced with an FTDI chip maybe?
- 5y ago
- asicsp 5y agoDiscussion from 3 weeks back: https://news.ycombinator.com/item?id=28036619 https://news.ycombinator.com/item?id=28036619 See also: https://0xax.gitbooks.io/linux-insides/content/ https://0xax.gitbooks.io/linux-insides/content/