0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 1 month agoTheoretical physicists: Actually...sh.itjust.worksimagemessage-square24fedilinkarrow-up1293arrow-down12
arrow-up1291arrow-down1imageTheoretical physicists: Actually...sh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 1 month agomessage-square24fedilink
minus-squareTimeSquirrel@kbin.melroy.orglinkfedilinkarrow-up12·1 month agoProgrammatically, what does the kernel actually do with data sent to /dev/null? Put it in a temp buffer and just delete it?
minus-squareFlipper@feddit.orglinkfedilinkarrow-up14·1 month agoThe syscall to write passes a buffer and length. If it is Dev null the call just returns without doing anything more.
minus-squareBoxscape@lemmy.sdf.orglinkfedilinkarrow-up5·edit-21 month ago Programmatically, what does the kernel actually do with data sent to /dev/null? I imagine it’s like getting nullified in that olde show ReBoot.
Programmatically, what does the kernel actually do with data sent to /dev/null? Put it in a temp buffer and just delete it?
The syscall to write passes a buffer and length. If it is Dev null the call just returns without doing anything more.
I imagine it’s like getting nullified in that olde show ReBoot.