403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.70.208.53
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/linux-headers-5.15.0-142/arch/sh/include/asm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/linux-headers-5.15.0-142/arch/sh/include/asm/platform_early.h
/* SPDX--License-Identifier: GPL-2.0 */

#ifndef __PLATFORM_EARLY__
#define __PLATFORM_EARLY__

#include <linux/types.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>

struct sh_early_platform_driver {
	const char *class_str;
	struct platform_driver *pdrv;
	struct list_head list;
	int requested_id;
	char *buffer;
	int bufsize;
};

#define EARLY_PLATFORM_ID_UNSET -2
#define EARLY_PLATFORM_ID_ERROR -3

extern int sh_early_platform_driver_register(struct sh_early_platform_driver *epdrv,
					  char *buf);
extern void sh_early_platform_add_devices(struct platform_device **devs, int num);

static inline int is_sh_early_platform_device(struct platform_device *pdev)
{
	return !pdev->dev.driver;
}

extern void sh_early_platform_driver_register_all(char *class_str);
extern int sh_early_platform_driver_probe(char *class_str,
				       int nr_probe, int user_only);

#define sh_early_platform_init(class_string, platdrv)		\
	sh_early_platform_init_buffer(class_string, platdrv, NULL, 0)

#ifndef MODULE
#define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz)	\
static __initdata struct sh_early_platform_driver early_driver = {		\
	.class_str = class_string,					\
	.buffer = buf,							\
	.bufsize = bufsiz,						\
	.pdrv = platdrv,						\
	.requested_id = EARLY_PLATFORM_ID_UNSET,			\
};									\
static int __init sh_early_platform_driver_setup_func(char *buffer)	\
{									\
	return sh_early_platform_driver_register(&early_driver, buffer);	\
}									\
early_param(class_string, sh_early_platform_driver_setup_func)
#else /* MODULE */
#define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz)	\
static inline char *sh_early_platform_driver_setup_func(void)		\
{									\
	return bufsiz ? buf : NULL;					\
}
#endif /* MODULE */

#endif /* __PLATFORM_EARLY__ */

Youez - 2016 - github.com/yon3zu
LinuXploit