parport_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– parport_read(9) β€” straight from the Kernel API Manual πŸ’–

okay bestie, welcome to the page for parport_read(9) in the Kernel API Manual. It’s giving read a block of data from a parallel port and I’m obsessed. Let’s go ✨

πŸŽ€ NAME πŸŽ€

parport_read β€” read a block of data from a parallel port. no cap, that’s the whole name vibe πŸ’…

🌟 SYNOPSIS 🌟

ssize_t parport_read (struct parport *port , void *buffer , size_t len
);

πŸ’… ARGUMENTS πŸ’…

  • port β€” the port to read from, bestie. pick your parallel port 🫢
  • buffer β€” the data buffer, and yes it’s in kernel space πŸ’–
  • len β€” how many bytes of data to transfer.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function will read up to len bytes of buffer to the port specified, using the IEEE 1284 transfer mode most recently negotiated to (using parport_negotiate), as long as that mode supports reverse transfers (peripheral to host). iconic behavior, honestly 🌈

It is the caller’s responsibility to ensure that the first len bytes of buffer are available to write to. That’s on you, not me πŸ’€

This function returns the number of bytes transferred (if zero or positive), or else an error code. slay, but keep an eye on that error code πŸ‘‘

πŸ“ SEE ALSO πŸ“

The Kernel file ./drivers/parport/ieee1284.c is where the squad lives. Go say hi to:


byeee bestie, the source/version footer is ./drivers/parport, dated October 2026 πŸ’œβœ¨

πŸ“¦ where this page comes from