Skip to contentSkip to conversation

kiobuf questions

DISCUSSION BenHanokh Gabriel 2 participants 2 messages Oct 3, 2000 Memory management

lore
Share & tools
lore
#0 lore raw

hi

i'm trying to understand the role of the kiobuf struct in the io subsystem.

there are 2 fields i failed to see any reference to :
end_io and
wait_queue

now, the documentation says that this is a completion callback , but i never saw anyone using it.

the same goes for the wait_queue, i didn't see any code utilizing it( except for the kiobuf_wait_for_io() which noone uses )

THX
/gabi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

#1 lore raw

Hi,

Quoted 10 lines · BenHanokh Gabriel

i'm trying to understand the role of the kiobuf struct in the io subsystem.

there are 2 fields i failed to see any reference to :
end_io and
wait_queue

now, the documentation says that this is a completion callback , but i never saw anyone using it.

That's because the only user of kiobuf-based IO is, for now, synchronous. You need end_io() callbacks and a wait queue to allow async completion in the future.

Cheers,
Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/