This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: fcntl module update supports FreeBSD F_KINFO flag
Type: Stage:
Components: FreeBSD Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, devnexen, koobs
Priority: normal Keywords:

Created on 2021-12-09 09:11 by devnexen, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 30000 open devnexen, 2021-12-09 09:11
Messages (7)
msg408088 - (view) Author: David CARLIER (devnexen) * Date: 2021-12-09 09:11
- Enabling new F_KINFO flag.
- Returning a subset of practical data from it.
msg408093 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-12-09 09:36
Please update the ticket with more information

- What does the flag F_KINFO do?
- Which platforms support the F_KINFO flag?
- link to a man page or platform documentation

A ticket should contain enough information so that a reviewer can understand the purpose of a feature request.
msg408096 - (view) Author: David CARLIER (devnexen) * Date: 2021-12-09 09:42
- The F_KINFO flag returns the related kinfo_file from the file descriptor.
- While F_KINFO is, at the moment, FreeBSD's specific however other BSD has kinfo_file data as well thus the possibility they support a similar feature (F_KINFO appears only around the 5th of December).
- Does not appear yet on the man page most likely due to its very recent appareance.
msg408097 - (view) Author: David CARLIER (devnexen) * Date: 2021-12-09 09:44
- Got clues mostly from source code and header https://github.com/freebsd/freebsd-src/blob/794d3e8e63f4a6ebc8926030b6c937109ddc5485/sys/sys/fcntl.h#L273
msg408100 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-12-09 09:56
I still have no clue what the flag is doing. Could you please describe the purpose and meaning of kinfo_file so that somebody without FreeBSD Kernel insight can understand it? Much appreciated.

The feature is not available in FreeBSD 13.0. Is it scheduled for 14.0? We typically do not wrap new Kernel or OS features until they are available in stable OS releases.
msg408102 - (view) Author: David CARLIER (devnexen) * Date: 2021-12-09 10:07
Ah right then no point then if there is no support for upcoming feature, indeed it s only FreeBSD 14 scheduled next year :-)
msg408103 - (view) Author: David CARLIER (devnexen) * Date: 2021-12-09 10:14
- A kinfo_file data holds file information from the kernel's perspective  (like the path or the current offset), more info here https://github.com/freebsd/freebsd-src/blob/main/sys/sys/user.h#L342
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90179
2021-12-09 10:14:42devnexensetmessages: + msg408103
2021-12-09 10:07:58devnexensetmessages: + msg408102
2021-12-09 09:56:52christian.heimessetmessages: + msg408100
2021-12-09 09:44:03devnexensetmessages: + msg408097
2021-12-09 09:42:35devnexensetmessages: + msg408096
2021-12-09 09:36:25christian.heimessetnosy: + christian.heimes
messages: + msg408093
2021-12-09 09:11:35devnexencreate