<commit_before>/* $chaos: process.h,v 1.8 2002/10/17 21:27:52 per Exp $ */
/* Author: <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

/**
 * @file                process.h
 * @brief               Process support. 
 */

#ifndef __STORM_IA32_PROCESS_H__
#define __STORM_IA32_PROCESS_H__

#include <storm/ia32/capability.h>
#include <storm/ia32/defines.h>
#include <storm/ia32/memory_virtual.h>
#include <storm/ia32/spinlock.h>
#include <storm/ia32/thread.h>
#include <storm/ia32/types.h>

/**
 * @brief               The process ID of the kernel process (idle thread). 
 */
#define PROCESS_ID_KERNEL \
                        0

/**
 * @brief               A process ID indicating 'no process'.
 *
 * Used in memory_allocate() in the beginning when we allocate memory
 * that's not registered in the process-page list.
 */
#define PROCESS_ID_NONE \
                        ((process_id_t) -1)

/**
 * @brief               The length of a process name.
 */
#define PROCESS_NAME_LENGTH \
                        32

/**
 * @brief               A unique process ID.
 */
typedef unsigned int    process_id_t;

/**
 * @brief               A structure with information about process.
 */
typedef struct
{
    /**
     * @brief           The process ID.
     */<commit_msg>Got rid of process_id_t (relax, it's in storm/interface.h :)<commit_after>/* $chaos: process.h,v 1.9 2002/10/20 16:48:26 per Exp $ */
/* Author: <NAME> <<EMAIL>> */

/* Copyright 2002 chaos development. */
/* Use freely under the terms listed in the file LICENSE. */

/**
 * @file                process.h
 * @brief               Process support. 
 */

#ifndef __STORM_IA32_PROCESS_H__
#define __STORM_IA32_PROCESS_H__

#include <storm/storm.h>
#include <storm/ia32/capability.h>
#include <storm/ia32/defines.h>
#include <storm/ia32/memory_virtual.h>
#include <storm/ia32/spinlock.h>
#include <storm/ia32/thread.h>
#include <storm/ia32/types.h>

/**
 * @brief               The process ID of the kernel process (idle thread). 
 */
#define PROCESS_ID_KERNEL \
                        0

/**
 * @brief               A process ID indicating 'no process'.
 *
 * Used in memory_allocate() in the beginning when we allocate memory
 * that's not registered in the process-page list.
 */
#define PROCESS_ID_NONE \
                        ((process_id_t) -1)

/**
 * @brief               The length of a process name.
 */
#define PROCESS_NAME_LENGTH \
                        32

/**
 * @brief               A structure with information about process.
 */
typedef struct
{
    /**
     * @brief           The process ID.
     */
{'fraction_non_alphanumeric': 0.12151993980436418, 'fraction_numerical': 0.030097817908201655, 'mean_word_length': 2.091860465116279, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2871527', 'n_tokens_mistral': 885, 'n_tokens_neox': 813, 'n_words': 239}