简体   繁体   中英

Get file data buffer from Vnode BSD OSx

I'd like to to extract the file buffer data from a Vnode object.

I'm using BSD for MAC, and the link to the Vnode documention can be found here: https://opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/sys/vnode.h

Also, creating a read operation for each received callback as described here: https://stackoverflow.com/a/36217596/2452682 is not an option due to kernel memory limitations.

What do you mean 'extract file buffer data' and what limitations do you have in mind?

In general, the use of a dedicated fs-specific read routine is unavoidable - the file content possibly is not even present in ram in the first place.

So, what are you doing?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM