Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHM helpers #1

Closed
elinorbgr opened this issue Jan 20, 2017 · 1 comment
Closed

SHM helpers #1

elinorbgr opened this issue Jan 20, 2017 · 1 comment

Comments

@elinorbgr
Copy link
Member

elinorbgr commented Jan 20, 2017

We need a mecanism for basic handling of wl_shm and wl_shm_pools. In the same fashion of the shm helpers of libwayland-server.

This raises a few questions, some of which may need support from wayland-server:

  • Be robust to a client advertizing a wrong size for the memory map (see this comment)
  • Handle resizing the memory pool (memmap crate) only supports it by unmapping and creating a new mapping)
  • Link a &WlBuffer to the underlying mapping, might need to add a user_data mechanism to wayland_server
@elinorbgr
Copy link
Member Author

Almost fixed by #2 I leave this open because it really needs some testing for SIGBUS robustness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant