---
title: set_gs
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.7+]
path: kernel/1571268-set_gs
---

# set_gs

## Declaration

```occ
void set_gs(uint16_t gs);
```
