Unix-system-calls-arch-prctl

提供:Dev Guides
移動先:案内検索

[top]#

|http://www.google.com/[Google] | a|

Web This Site
  • 初心者向けのUnix *
  • 高度なUnix *

選択した読書

Copyright©2014 by finddevguides

[cols=",,,,,,,",]

| |  Home   | |  References   | |  Discussion Forums   | |  About TP  

[width="100%",cols="100%",]

a| == arch_prctl()-Unix、Linuxシステムコール

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]

広告

NAME

arch_prctl-アーキテクチャ固有のスレッド状態を設定する

概要

#include <asm/prctl.h> #include <sys/prctl.h> int arch_prctl(int code, unsigned long addr)

説明

*arch_prctl* ()関数は、アーキテクチャ固有のプロセスまたはスレッドの状態を設定します。 _code_はサブ関数を選択し、引数_addr_を渡します。

x86-64のサブ機能は次のとおりです。

Tag Description
ARCH_SET_FS Set the 64bit base for the FS register toaddr.
ARCH_GET_FS Return the 64bit base value for theFS register of the current thread in theunsigned long pointed to by the address parameter
ARCH_SET_GS Set the 64bit base for the GS register to addr.
ARCH_GET_GS Return the 64bit base value for the GS register of the current thread in the unsigned long pointed to by the address parameter.

エラー

Tag Description
EFAULT addr points to an unmapped address or is outside the process address space.
EINVAL code is not a valid subcommand.
EPERM addr is outside the process address space.

著者

Andi Kleenによって書かれたmanページ。

準拠

*arch_prctl* ()はLinux/x86-64拡張機能であり、移植を目的としたプログラムでは使用しないでください。

関連項目

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]

広告

|  

[cols="^",]

|Advertisements