Commit aa956147 authored by nextime's avatar nextime

Better header and some doc

parent eb9dc275
/*
* Copyright (c) 2015 Franco (nextime) Lanza <nextime@nexlab.it>
*
* pinthread [https://git.devuan.org/packages-base/pinthread]
*
* pinthread is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*************************************************************************************
*
* compile with :
* $ gcc -Wall -D_GNU_SOURCE -fpic -shared -o pinthread.so pinthread.c -ldl -lpthread
*
* and test it with :
* LD_PRELOAD=/path/to/pinthread.so something
* LD_PRELOAD=/path/to/pinthread.so something
*
* Environment variables:
* - PINTHREAD_CORE: set to the core number you want to pin to.
* if omitted, it defaults to the result of
* sched_getcpu()
*
* - PINTHREAD_PNAMES: accept a space separated list of strings,
* if any string match the process name or
* PINTHREAD_PNAMES is empty/omitted, it will
* pin all thread according to PINTHREAD_CORE,
* otherwise it will just call the "real"
* pthread_create without any pinning.
*
*/
//#include <sys/types.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment