Skip to main content



System calls: how programs talk to the Linux kernel


Hello everyone,

I've just published the second post in my Linux Inside Out series.

In the first post we demystified the Linux kernel a bit: where it lives, how to boot it in a VM, and we even wrote a tiny init program.

In this second post we go one layer deeper and look at how programs actually talk to the kernel.
We'll do a few small experiments to see:
* how our init program (that we wrote in the first post) communicates with the kernel via system calls
* how something like echo "hello" ends up printing text on your screen
* how to trace system calls to understand what a program is doing

I’m mainly targeting developers and self-hosters who use Linux daily and are curious about the internals of a Linux-based operating system.

This is part 2 of a longer series, going layer by layer through a Linux system while trying to keep things practical and approachable.

Link (part 2): serversfor.dev/linux-inside-ou…

Link (part 1): serversfor.dev/linux-inside-ou…

As always, any feedback is appreciated.

in reply to zknd

Really great article.

I was a bit critical of your last post on kernel init stuff, but this one is well laid out and gets quickly to the material at hand: all applications make the same system calls.

Keep it up, I'm going to follow this.



in reply to ☆ Yσɠƚԋσʂ ☆

Alternative idea for the adventurous lot - or extreme self-hosters: Buy an old Xeon datacenter server with 1.5tb ddr3 ram (separately). Ddr3 still costs around a dollar pr gig (a month ago), so this rig with two xeon and 24 * 64gb ddr3 ram will cost ~1900$ + transport: ~2k.

(OR an older pc motherboard with 4*64 channels or similar)

DDR3 is a bit slower, use more power, and the server is big/noisy, but the difference in price is unbeatable, and it's a hell of a KVcache (for ai) if you put a gpu in it.

Note though, that power expenses are going up in the West.

in reply to ☆ Yσɠƚԋσʂ ☆

Yeah coz the smart amongst us bought loads of it YEARS ago and are running what we REALLY NEED TO just fine :)

in reply to Cows Look Like Maps

permits only athletes assigned female at birth to compete in women’s sports.


So a trans man, having been assigned female at birth, could compete in women's sports?

in reply to grey_maniac

They never seem to understand that trans men exist. They're never accounted for, and when asked about them, they always seem to think you're talking about trans women.
in reply to Kichae

And these people are allowed to make policy decisions?! They shouldn't even be allowed to drive.
in reply to grey_maniac

So a trans man, having been assigned female at birth, could compete in women’s sports?


I want to see that happen. Watch Danielle Huckabee Smith's head explodel




US tech firm Palantir extends deal with French intelligence agency


The renewed contract will see Palantir continue to provide the DGSI agency with its "proprietary software platform, as well as the integration, support and assistance services that are necessary for... deployment and operational use," it said in a statement.


US tech firm Palantir extends deal with French intelligence agency


cross-posted from : lemmy.zip/post/55172156

The renewed contract will see Palantir continue to provide the DGSI agency with its "proprietary software platform, as well as the integration, support and assistance services that are necessary for... deployment and operational use," it said in a statement.



US tech firm Palantir extends deal with French intelligence agency


The renewed contract will see Palantir continue to provide the DGSI agency with its "proprietary software platform, as well as the integration, support and assistance services that are necessary for... deployment and operational use," it said in a statement.



This entry was edited (1 week ago)

in reply to kxx

There's genp community (which includes monkrus) in dbzer0. You should check it out.
This entry was edited (1 week ago)


Assange files criminal complaint against Nobel Foundation: Peace prize isn’t a war fund


WikiLeaks founder Julian Assange has filed a sweeping criminal complaint in Sweden accusing 30 Nobel Foundation officials of misappropriation, facilitating war crimes, and turning the Peace Prize into what he calls “an instrument of war.”

Assange is asking Swedish authorities to immediately freeze the 11 million SEK prize money before its transfer to Machado. The complaint says Nobel administrators breached their fiduciary duty by approving a payout to a figure who has openly advocated foreign military intervention.

️ Assange cites statements in which Machado supports US military escalation around Venezuela and endorses strikes that would kill civilians. Nobel officials, he argues, “converted an instrument of peace into an instrument of war.”



Assange files criminal complaint against Nobel Foundation: Peace prize isn’t a war fund


WikiLeaks founder Julian Assange has filed a sweeping criminal complaint in Sweden accusing 30 Nobel Foundation officials of misappropriation, facilitating war crimes, and turning the Peace Prize into what he calls “an instrument of war.”

Assange is asking Swedish authorities to immediately freeze the 11 million SEK prize money before its transfer to Machado. The complaint says Nobel administrators breached their fiduciary duty by approving a payout to a figure who has openly advocated foreign military intervention.

️ Assange cites statements in which Machado supports US military escalation around Venezuela and endorses strikes that would kill civilians. Nobel officials, he argues, “converted an instrument of peace into an instrument of war.”

in reply to geneva_convenience

It's kind of poetic. Nobel made a lot of money selling explosives and was annoyed by how people viewed him as war profiteer, so he used his fortune to create a prize for promoting peace, and now it has evolved into a tool for promoting war, tarnishing his image.
This entry was edited (1 week ago)
in reply to geneva_convenience

Maria Corina Machado is apologist of an intervention because it's the last resort. The people of Venezuela have tried everything else to be free of the dictatorship, oppression, random and policial killings. It's easy to judge when you're not deep in the situation yourself.

in reply to zjti8eit

Watching live sports for 50$ per year, is cheaper than paying for any sport service out there.
in reply to zjti8eit

"Something something piracy is a service issue."

-Gandhi, probably



Av världens fiskbestånd är en överväldigande majoritet hållbart fiskade eller underfiskade. För fisket gäller att cirka 65 % av allt fiske är hållbart. Dessa fisken producerar nästan 80% av världens sjömat direkt och indirekt.

fiske.zaramis.se/2025/12/17/ww…

This entry was edited (1 week ago)

in reply to FosterMolasses

I'm really surprised that anyone remembers the plot of the Simpsons movie.

EDIT: The Simpsons movie came out so long ago that it is old enough to do porn

This entry was edited (1 week ago)
in reply to alias_qr_rainmaker

The Simpsons movie came out so long ago that it is old enough to do porn


Whoa, major spoilers for the untitled 2027 second movie!




Is Mozilla trying hard to kill itself?


#tech


Is Mozilla trying hard to kill itself?


#tech


Is Mozilla trying hard to kill itself?




Is Mozilla trying hard to kill itself?




Ah, yes, the effect is made of cause (repost, accidentally deleted the original)


Ah, yes, the effect is made of cause (repost, accidentally...
Explanation: Plenty of European cultures and languages directly owe their existence (or nonexistent, see: Gaul) to the actions of the Roman Empire. The idea is that colonialism apologists like to say colonialism is too far into the past for its effects to matter to African development (and therefore it's not Europeans' fault for stealing incomprehensible amounts of wealth from the continent) while speaking in languages that wouldn't exist if not for nonsense a some Italians got up to millennia ago.


Den tredje bokbyn i Skåne heter Kivik men kallas Albo efter det härad där Kivik ligger. I motsats till de två andra bokbyarna i Borrby och Önneköp verkar Kivik inte vara ett folkligt projekt och kanske heller inget projekt för att rädda en avfolkningsbygd. Detta sagt även om det i verkligheten är så att befolkningen i KIvik minskar för att sommargäster och turister köper upp bostadshusen.

blog.zaramis.se/2025/12/17/den…