# Ccall() to ioctl

**URL:** <https://discourse.julialang.org/t/ccall-to-ioctl/6219>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 3, 2017, 3:17pm UTC](https://discourse.julialang.org/t/ccall-to-ioctl/6219 "2017-10-03T15:17:48Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [October 3, 2017, 9:07pm UTC](https://discourse.julialang.org/t/ccall-to-ioctl/6219/17 "2017-10-03T21:07:04Z")

</div>

Both are userspace. The Linux header gives `unsigned long` so that should be used. Since as I said, the interger type actually doesn’t matter that much for any architectures, the linux signature is basically an extension to the posix signature.

P.S. On the kernel side, everything is passed as long in completely different way.

---

_[View the full topic](https://discourse.julialang.org/t/ccall-to-ioctl/6219)._
