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

fs: improve ioctl implementation #235

Closed
wants to merge 2 commits into from

Conversation

jonasjelonek
Copy link
Contributor

No description provided.

Exports IOC_DIR_* constants to use for the direction parameter instead
of plain integer values. The constants are based on the target's _IOC_*
definitions.

Signed-off-by: Jonas Jelonek <[email protected]>
Allocate memory for 'uc_string_t' with the proper size upfront and
use it's internal buffer as ioctl buffer. This avoids using
'ucv_string_new_length' and thus allocating memory a second time.

For ioctl read-write, this completely reuses the 'uc_string_t', also
eliminating the 'ucv_string_new_length' call.

Signed-off-by: Jonas Jelonek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant