Document additional behaviour of this function (see

rev 1.3 of uthread_attr_get_np.c)
This commit is contained in:
phantom 2003-02-03 10:10:40 +00:00
parent 52b39c3830
commit 2c5bce8343
2 changed files with 24 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" Copyright (c) 2002 Alexey Zelkin <phantom@FreeBSD.org> .\" Copyright (c) 2002,2003 Alexey Zelkin <phantom@FreeBSD.org>
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 26, 2002 .Dd January 31, 2003
.Dt PTHREAD_ATTR_GET_NP 3 .Dt PTHREAD_ATTR_GET_NP 3
.Os .Os
.Sh NAME .Sh NAME
@ -40,6 +40,16 @@
The The
.Fn pthread_attr_get_np .Fn pthread_attr_get_np
function is used to get existent thread's attributes. function is used to get existent thread's attributes.
Most fields of
.Vt pthread_attr_t
structure are exact values of attributes provided at thread creation
time (as parameter to
.Fn pthread_create
function), except stack address.
.Fn pthread_attr_get_np
will always return pointer to thread's real stack address regardless
to its value in original attributes structure.
.Pp
Value returned as Value returned as
.Fa dst .Fa dst
is supposed to be used in conjunction with is supposed to be used in conjunction with

View File

@ -1,4 +1,4 @@
.\" Copyright (c) 2002 Alexey Zelkin <phantom@FreeBSD.org> .\" Copyright (c) 2002,2003 Alexey Zelkin <phantom@FreeBSD.org>
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 26, 2002 .Dd January 31, 2003
.Dt PTHREAD_ATTR_GET_NP 3 .Dt PTHREAD_ATTR_GET_NP 3
.Os .Os
.Sh NAME .Sh NAME
@ -40,6 +40,16 @@
The The
.Fn pthread_attr_get_np .Fn pthread_attr_get_np
function is used to get existent thread's attributes. function is used to get existent thread's attributes.
Most fields of
.Vt pthread_attr_t
structure are exact values of attributes provided at thread creation
time (as parameter to
.Fn pthread_create
function), except stack address.
.Fn pthread_attr_get_np
will always return pointer to thread's real stack address regardless
to its value in original attributes structure.
.Pp
Value returned as Value returned as
.Fa dst .Fa dst
is supposed to be used in conjunction with is supposed to be used in conjunction with