Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12312

Can struct statx be used inside kernel?

$
0
0

I'm trying to get a particular process' creation time. In order to do that I use vfs_statx() method which takes struct kstat as an argument. But the problem is that does the struct kstat has struct statx_timestamp field inside it? I know that struct statx does have it, but can it be used within kernel?

Shortly:

Can I define a variable like struct statx my_stat; inside kernel and then use its statx_timestamp field?

Thanks in advance.


Viewing all articles
Browse latest Browse all 12312

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>