Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

linux: Add devmem constants and structs#4299

Merged
tgross35 merged 2 commits intorust-lang:mainfromtammela:more-constants
Mar 11, 2025

Conversation

tammela
Copy link
Contributor

@tammelatammela commentedMar 5, 2025
edited
Loading

Description

Adds devmem constants and structs. Devmem was merged recently (6.12).
I had also add all the other missingSO_ constants for completion.
As usual, musl is way behind (even on 1.2) so all of these will be skipped there.

Sources

https://github.com/torvalds/linux/blob/c0d35086a21b8d5536da5029fd76b9aeecf3217d/include/uapi/asm-generic/socket.h#L125
https://github.com/torvalds/linux/blob/c0d35086a21b8d5536da5029fd76b9aeecf3217d/include/uapi/linux/uio.h#L23

Checklist

  • Relevant tests inlibc-test/semver have been updated
  • No placeholder or unstable values like*LAST or*MAX are
    included (see#3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot
Copy link
Collaborator

r?@tgross35

rustbot has assigned@tgross35.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

User? to explicitly pick a reviewer

Copy link
Contributor

@tgross35tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Implementation LGTM. Could you add permalinks to the headers in the PR description and fix the style failure?

@tgross35
Copy link
Contributor

Thanks!

@rustbot label +stable-nominated

@rustbotrustbot added the stable-nominatedThis PR should be considered for cherry-pick to libc's stable release branch labelMar 7, 2025
@tgross35tgross35enabled auto-mergeMarch 7, 2025 20:05
Copy link
Contributor

@tgross35tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

AreSO_RESERVE_MEM and similar available on sparc? CI seems to think they aren't. If they are more recent, the test crate's build script will need to be updated.

@tammela
Copy link
ContributorAuthor

My guess is that there will one more architecture that this PR will be break.
Anyways I posted this:#4317
Should fix for sparc and reactivate testing on s390x.

The devmem constants requires headers >= 6.12 on gnu libc.Musl hardcodes these constants into "sys/socket.h", which are not yet present.For reference:https://elixir.bootlin.com/linux/v6.13.5/source/include/uapi/asm-generic/socket.h#L142Signed-off-by: Pedro Tammela <pctammela@gmail.com>
Copy link
Contributor

@tgross35tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks like things are passing now, thanks for the CI fix!

@tgross35tgross35 added this pull request to themerge queueMar 11, 2025
Merged via the queue intorust-lang:main with commit0ad0aa6Mar 11, 2025
43 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull requestMar 11, 2025
The devmem constants requires headers >= 6.12 on gnu libc.Musl hardcodes these constants into "sys/socket.h", which are not yet present.For reference:https://elixir.bootlin.com/linux/v6.13.5/source/include/uapi/asm-generic/socket.h#L142Signed-off-by: Pedro Tammela <pctammela@gmail.com>(backport <rust-lang#4299>)(cherry picked from commitae98edd)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull requestMar 11, 2025
For reference:https://elixir.bootlin.com/linux/v6.13.5/source/include/uapi/linux/uio.h#L23Signed-off-by: Pedro Tammela <pctammela@gmail.com>(backport <rust-lang#4299>)(cherry picked from commit4985e60)
@tgross35tgross35 mentioned this pull requestMar 11, 2025
@github-actionsgithub-actionsbot mentioned this pull requestMar 11, 2025
@tgross35tgross35 removed the stable-nominatedThis PR should be considered for cherry-pick to libc's stable release branch labelMar 11, 2025
@tgross35tgross35 added the stable-appliedThis PR has been cherry-picked to libc's stable release branch labelMar 11, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tgross35tgross35tgross35 approved these changes

Assignees

@tgross35tgross35

Labels
O-linuxO-mipsO-sparcO-unixS-waiting-on-authorstable-appliedThis PR has been cherry-picked to libc's stable release branch
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@tammela@rustbot@tgross35

[8]ページ先頭

©2009-2025 Movatter.jp